aboutsummaryrefslogtreecommitdiffstats
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-07-20 07:50:18 +0100
committerGravatar Sadie Powell2020-07-20 07:50:18 +0100
commit306594f591dbf530badc0a8dae109872a0d67354 (patch)
tree6eca956768e4b96a9784383d353a7890cbd50c35 /src/inspsocket.cpp
parentFix the case of getError/getSendQSize and rewrite the doc comments. (diff)
Move GetNextLine from StreamSocket to TreeSocket.
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r--src/inspsocket.cpp10
1 files changed, 0 insertions, 10 deletions
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)