From a05e54b8e005cb61eb180f148aaf6a0c5dcf20c4 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Fri, 8 Aug 2014 02:05:44 +0200 Subject: [PATCH] Removed some unused code from Console --- src/supertux/console.hpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/supertux/console.hpp b/src/supertux/console.hpp index d81bbf38fc2..9c608986f76 100644 --- a/src/supertux/console.hpp +++ b/src/supertux/console.hpp @@ -62,26 +62,6 @@ class Console 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 */