summaryrefslogtreecommitdiffstats
path: root/reftable/reftable-reader.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-08-22 08:35:29 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-22 16:59:48 +0200
commit6014639837a8f118513563e6d9e3ff404e470b31 (patch)
treec1f8c2b1cffeb3456253c79b1cd95c2a2a33b723 /reftable/reftable-reader.h
parentt/helper: refactor to not use `struct reftable_table` (diff)
downloadgit-6014639837a8f118513563e6d9e3ff404e470b31.tar.xz
git-6014639837a8f118513563e6d9e3ff404e470b31.zip
reftable/generic: drop interface
The `reftable_table` interface provides a generic infrastructure that can abstract away whether the underlying table is a single table, or a merged table. This abstraction can make it rather hard to reason about the code. We didn't ever use it to implement the reftable backend, and with the preceding patches in this patch series we in fact don't use it at all anymore. Furthermore, it became somewhat useless with the recent refactorings that made it possible to seek reftable iterators multiple times, as these now provide generic access to tables for us. The interface is thus redundant and only brings unnecessary complexity with it. Remove the `struct reftable_table` interface and its associated functions. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reftable/reftable-reader.h')
-rw-r--r--reftable/reftable-reader.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/reftable/reftable-reader.h b/reftable/reftable-reader.h
index 7c7d171651..69621c5b0f 100644
--- a/reftable/reftable-reader.h
+++ b/reftable/reftable-reader.h
@@ -23,9 +23,6 @@
/* The reader struct is a handle to an open reftable file. */
struct reftable_reader;
-/* Generic table. */
-struct reftable_table;
-
/* reftable_new_reader opens a reftable for reading. If successful,
* returns 0 code and sets pp. The name is used for creating a
* stack. Typically, it is the basename of the file. The block source
@@ -60,10 +57,6 @@ uint64_t reftable_reader_max_update_index(struct reftable_reader *r);
/* return the min_update_index for a table */
uint64_t reftable_reader_min_update_index(struct reftable_reader *r);
-/* creates a generic table from a file reader. */
-void reftable_table_from_reader(struct reftable_table *tab,
- struct reftable_reader *reader);
-
/* print blocks onto stdout for debugging. */
int reftable_reader_print_blocks(const char *tablename);