From 47bd6afb103c5ddfb4a878e95416793610ed1be3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Thu, 14 Nov 2024 19:56:50 +0100 Subject: Move ReplyBuilder and WaitingRef definitions to network.h --- src/network/protocol.h | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'src/network/protocol.h') diff --git a/src/network/protocol.h b/src/network/protocol.h index f925af4..2db4e63 100644 --- a/src/network/protocol.h +++ b/src/network/protocol.h @@ -261,28 +261,4 @@ inline bool operator!=(const NetworkProtocol::Header::Item & left, inline bool operator==(const NetworkProtocol::Cookie & left, const NetworkProtocol::Cookie & right) { return left.value == right.value; } -class ReplyBuilder -{ -public: - void header(NetworkProtocol::Header::Item &&); - void body(const Ref &); - - const vector & header() const { return mheader; } - vector body() const; - -private: - vector mheader; - vector mbody; -}; - -struct WaitingRef -{ - const Storage storage; - const PartialRef ref; - vector missing; - - optional check(); - optional check( ReplyBuilder &, const vector< Digest > &); -}; - } -- cgit v1.2.3