From 306594f591dbf530badc0a8dae109872a0d67354 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 20 Jul 2020 07:50:18 +0100 Subject: Move GetNextLine from StreamSocket to TreeSocket. --- src/inspsocket.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/inspsocket.cpp') diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 71fdbeb2b..f0f804fff 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -137,16 +137,6 @@ CullResult StreamSocket::cull() return EventHandler::cull(); } -bool StreamSocket::GetNextLine(std::string& line, char delim) -{ - std::string::size_type i = recvq.find(delim); - if (i == std::string::npos) - return false; - line.assign(recvq, 0, i); - recvq.erase(0, i + 1); - return true; -} - int StreamSocket::HookChainRead(IOHook* hook, std::string& rq) { if (!hook) -- cgit v1.3.1-10-gc9f91