diff options
| author | 2020-07-20 07:50:18 +0100 | |
|---|---|---|
| committer | 2020-07-20 07:50:18 +0100 | |
| commit | 306594f591dbf530badc0a8dae109872a0d67354 (patch) | |
| tree | 6eca956768e4b96a9784383d353a7890cbd50c35 /src/inspsocket.cpp | |
| parent | Fix 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.cpp | 10 |
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) |
