diff options
Diffstat (limited to 'webrtc/base/linux.cc')
-rw-r--r-- | webrtc/base/linux.cc | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/webrtc/base/linux.cc b/webrtc/base/linux.cc index 1586b27b07..0894d39c77 100644 --- a/webrtc/base/linux.cc +++ b/webrtc/base/linux.cc @@ -233,33 +233,6 @@ bool ConfigParser::ParseLine(std::string* key, std::string* value) { return true; } -#if !defined(WEBRTC_CHROMIUM_BUILD) -static bool ExpectLineFromStream(FileStream* stream, - std::string* out) { - StreamResult res = stream->ReadLine(out); - if (res != SR_SUCCESS) { - if (res != SR_EOS) { - LOG(LS_ERROR) << "Error when reading from stream"; - } else { - LOG(LS_ERROR) << "Incorrect number of lines in stream"; - } - return false; - } - return true; -} - -static void ExpectEofFromStream(FileStream* stream) { - std::string unused; - StreamResult res = stream->ReadLine(&unused); - if (res == SR_SUCCESS) { - LOG(LS_WARNING) << "Ignoring unexpected extra lines from stream"; - } else if (res != SR_EOS) { - LOG(LS_WARNING) << "Error when checking for extra lines from stream"; - } -} - -#endif - std::string ReadLinuxUname() { struct utsname buf; if (uname(&buf) < 0) { |