git/reftable
Jeff King 4695c3f3a9 reftable: mark unused parameters in virtual functions
The reftable code uses a lot of virtual function pointers, but many of
the concrete implementations do not need all of the parameters.

For the most part these are obviously fine to just mark as UNUSED (e.g.,
the empty_iterator functions unsurprisingly do not do anything). Here
are a few cases where I dug a little deeper (but still ended up just
marking them UNUSED):

  - the iterator exclude_patterns is best-effort and optional (though it
    would be nice to support in the long run as an optimization)

  - ignoring the ref_store in many transaction functions is unexpected,
    but works because the ref_transaction itself carries enough
    information to do what we need.

  - ignoring "err" for in some cases (e.g., transaction abort) is OK
    because we do not return any errors. It is a little odd for
    reftable_be_create_reflog(), though, since we do return errors
    there. We should perhaps be creating string error messages at this
    layer, but I've punted on that for now.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-08-17 09:46:12 -07:00
..
basics.c global: improve const correctness when assigning string constants 2024-06-07 10:30:48 -07:00
basics.h global: improve const correctness when assigning string constants 2024-06-07 10:30:48 -07:00
block.c reftable/block: use size_t to track restart point index 2024-05-13 17:04:16 -07:00
block.h reftable: use uint16_t to track restart interval 2024-05-13 17:02:38 -07:00
block_test.c reftable: ignore unused argc/argv in test functions 2024-08-17 09:46:12 -07:00
blocksource.c reftable: mark unused parameters in virtual functions 2024-08-17 09:46:12 -07:00
blocksource.h reftable: add blocksource, an abstraction for random access reads 2021-10-08 10:45:48 -07:00
constants.h reftable: make the compaction factor configurable 2024-05-13 17:02:39 -07:00
dump.c hash-ll: merge with "hash.h" 2024-06-14 10:26:33 -07:00
error.c Merge branch 'ps/reftable-write-optim' 2024-05-08 10:18:43 -07:00
generic.c reftable: mark unused parameters in virtual functions 2024-08-17 09:46:12 -07:00
generic.h reftable/generic: move seeking of records into the iterator 2024-05-13 17:04:18 -07:00
iter.c reftable: mark unused parameters in virtual functions 2024-08-17 09:46:12 -07:00
iter.h reftable/merged: remove unnecessary null check for subiters 2024-03-04 10:19:39 -08:00
LICENSE
merged.c Merge branch 'ps/ref-storage-migration' 2024-06-17 15:55:55 -07:00
merged.h Merge branch 'ps/ref-storage-migration' 2024-06-17 15:55:55 -07:00
pq.c reftable: change the type of array indices to 'size_t' in reftable/pq.c 2024-08-01 09:07:28 -07:00
pq.h t-reftable-pq: make merged_iter_pqueue_check() static 2024-08-01 09:07:29 -07:00
publicbasics.c reftable: introduce macros to allocate arrays 2024-02-06 12:10:08 -08:00
reader.c Merge branch 'ps/reftable-reusable-iterator' 2024-05-30 14:15:12 -07:00
reader.h reftable: read reftable files 2021-10-08 10:45:48 -07:00
readwrite_test.c reftable: ignore unused argc/argv in test functions 2024-08-17 09:46:12 -07:00
record.c reftable: mark unused parameters in virtual functions 2024-08-17 09:46:12 -07:00
record.h reftable/record: extract function to decode key lengths 2024-04-03 09:16:50 -07:00
reftable-blocksource.h reftable: add blocksource, an abstraction for random access reads 2021-10-08 10:45:48 -07:00
reftable-error.h Merge branch 'ps/reftable-write-optim' 2024-05-08 10:18:43 -07:00
reftable-generic.h reftable/generic: adapt interface to allow reuse of iterators 2024-05-13 17:04:18 -07:00
reftable-iterator.h reftable/generic: adapt interface to allow reuse of iterators 2024-05-13 17:04:18 -07:00
reftable-malloc.h reftable: utility functions 2021-10-08 10:45:48 -07:00
reftable-merged.h reftable/merged: adapt interface to allow reuse of iterators 2024-05-13 17:04:19 -07:00
reftable-reader.h Merge branch 'ps/reftable-reusable-iterator' 2024-05-30 14:15:12 -07:00
reftable-record.h hash-ll: merge with "hash.h" 2024-06-14 10:26:33 -07:00
reftable-stack.h Merge branch 'ps/reftable-reusable-iterator' 2024-05-30 14:15:12 -07:00
reftable-tests.h reftable: drop obsolete test function declarations 2024-08-17 09:46:12 -07:00
reftable-writer.h reftable: make the compaction factor configurable 2024-05-13 17:02:39 -07:00
stack.c reftable/stack: handle locked tables during auto-compaction 2024-08-08 10:14:43 -07:00
stack.h reftable: make the compaction factor configurable 2024-05-13 17:02:39 -07:00
stack_test.c reftable: mark unused parameters in virtual functions 2024-08-17 09:46:12 -07:00
system.h hash-ll: merge with "hash.h" 2024-06-14 10:26:33 -07:00
test_framework.c reftable: mark unused parameters in virtual functions 2024-08-17 09:46:12 -07:00
test_framework.h reftable: honor core.fsync 2024-01-23 13:45:27 -08:00
tree.c reftable: remove unnecessary curly braces in reftable/tree.c 2024-08-04 09:50:18 -07:00
tree.h reftable: a generic binary tree implementation 2021-10-08 10:45:48 -07:00
writer.c reftable: mark unused parameters in virtual functions 2024-08-17 09:46:12 -07:00
writer.h reftable: honor core.fsync 2024-01-23 13:45:27 -08:00