From: Ingo Ruhnke Date: Fri, 8 Aug 2014 00:05:44 +0000 (+0200) Subject: Removed some unused code from Console X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a05e54b8e005cb61eb180f148aaf6a0c5dcf20c4;p=supertux.git Removed some unused code from Console --- diff --git a/src/supertux/console.hpp b/src/supertux/console.hpp index d81bbf38f..9c608986f 100644 --- a/src/supertux/console.hpp +++ b/src/supertux/console.hpp @@ -62,26 +62,6 @@ public: bool hasFocus(); /**< true if characters should be sent to the console instead of their normal target */ - template static bool string_is(std::string s) { - std::istringstream iss(s); - T i; - if ((iss >> i) && iss.eof()) { - return true; - } else { - return false; - } - } - - template static T string_to(std::string s) { - std::istringstream iss(s); - T i; - if ((iss >> i) && iss.eof()) { - return i; - } else { - return T(); - } - } - private: std::list history; /**< command history. New lines get added to back. */ std::list::iterator history_position; /**< item of command history that is currently displayed */