diff options
author | eldritch horrors <pennae@lix.systems> | 2024-05-01 20:10:00 +0200 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-07-06 12:36:37 +0200 |
commit | 5af76dee371ea5fa1eb72141370fdf18851d67c7 (patch) | |
tree | a51cc0348910a8fce0df02c132efe9a438ddd911 /src/libutil/references.hh | |
parent | 4162a66cee97ec16c88d991ef9a6d9baa3740053 (diff) |
libutil: turn HashModuloSink into a free function
Change-Id: I5878007502fa68c2816a0f4c61f7d0e60bdde702
Diffstat (limited to 'src/libutil/references.hh')
-rw-r--r-- | src/libutil/references.hh | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/libutil/references.hh b/src/libutil/references.hh index f0baeffe1..970d2d235 100644 --- a/src/libutil/references.hh +++ b/src/libutil/references.hh @@ -41,16 +41,6 @@ struct RewritingSink : Sink void flush(); }; -struct HashModuloSink : AbstractHashSink -{ - HashSink hashSink; - RewritingSink rewritingSink; - - HashModuloSink(HashType ht, const std::string & modulus); - - void operator () (std::string_view data) override; - - HashResult finish() override; -}; +HashResult computeHashModulo(HashType ht, const std::string & modulus, Source & source); } |