summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/network')
-rw-r--r--src/network/protocol.cpp2
-rw-r--r--src/network/protocol.h24
2 files changed, 1 insertions, 25 deletions
diff --git a/src/network/protocol.cpp b/src/network/protocol.cpp
index 9848d29..dbf1c40 100644
--- a/src/network/protocol.cpp
+++ b/src/network/protocol.cpp
@@ -387,7 +387,7 @@ optional<NetworkProtocol::Header> NetworkProtocol::Connection::receive(const Par
return nullopt;
}
}
- else if (const auto * sdata = get_if< StreamData >( &parsed )) {
+ else if( auto * sdata = get_if< StreamData >( &parsed )){
scoped_lock lock(p->cmutex);
if (secure)
p->toAcknowledge.push_back(*secure);
diff --git a/src/network/protocol.h b/src/network/protocol.h
index 2592c9f..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<NetworkProtocol::Header::Item> & header() const { return mheader; }
- vector<Object> body() const;
-
-private:
- vector<NetworkProtocol::Header::Item> mheader;
- vector<Ref> mbody;
-};
-
-struct WaitingRef
-{
- const Storage storage;
- const PartialRef ref;
- vector<Digest> missing;
-
- optional<Ref> check();
- optional<Ref> check(ReplyBuilder &);
-};
-
}