From e1e9341a84b89111c61c6c4bcceab1759b90f818 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 22 Aug 2016 16:34:00 +0200 Subject: [PATCH] Remove unused irc::tokenstream::GetToken() overload accepting an irc::string --- include/hashcomp.h | 6 ------ src/hashcomp.cpp | 8 -------- 2 files changed, 14 deletions(-) diff --git a/include/hashcomp.h b/include/hashcomp.h index 5b2c7215e..168ecb289 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -265,12 +265,6 @@ namespace irc */ bool GetToken(std::string &token); - /** Fetch the next token from the stream as an irc::string - * @param token The next token available, or an empty string if none remain - * @return True if tokens are left to be read, false if the last token was just retrieved. - */ - bool GetToken(irc::string &token); - /** Fetch the next token from the stream as an integer * @param token The next token available, or undefined if none remain * @return True if tokens are left to be read, false if the last token was just retrieved. diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index 36a6aabc9..1bbc35d1f 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -272,14 +272,6 @@ bool irc::tokenstream::GetToken(std::string &token) return true; } -bool irc::tokenstream::GetToken(irc::string &token) -{ - std::string stdstring; - bool returnval = GetToken(stdstring); - token = assign(stdstring); - return returnval; -} - bool irc::tokenstream::GetToken(int &token) { std::string tok; -- 2.39.2