aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/references.hh
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-05-02 03:09:51 +0200
committereldritch horrors <pennae@lix.systems>2024-07-06 12:36:37 +0200
commit55a32f24d3285c0b4f6866e16a4c8aeac6345c02 (patch)
tree98c40d476fc69913f40fc12c7a3dfec8f13f7109 /src/libutil/references.hh
parent5af76dee371ea5fa1eb72141370fdf18851d67c7 (diff)
libutil: remove RewritingSink match/size tracking
size tracking can be done with a LengthSink and a tee. match tracking was defeated by never having done any match tracking, all users would see the same (empty) set of matches at all times. match tracking with bytes offsets alone would not be sufficient in the general case, only because computeHashModulo uses a single rewrite could it have worked. Change-Id: Idb214b5222e0ea24f450f5505712a342b63d7570
Diffstat (limited to 'src/libutil/references.hh')
-rw-r--r--src/libutil/references.hh3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libutil/references.hh b/src/libutil/references.hh
index 970d2d235..3fefd824b 100644
--- a/src/libutil/references.hh
+++ b/src/libutil/references.hh
@@ -29,9 +29,6 @@ struct RewritingSink : Sink
std::string::size_type maxRewriteSize;
std::string prev;
Sink & nextSink;
- uint64_t pos = 0;
-
- std::vector<uint64_t> matches;
RewritingSink(const std::string & from, const std::string & to, Sink & nextSink);
RewritingSink(const StringMap & rewrites, Sink & nextSink);