Skip to content

Commit

Permalink
Removed some unused code from Console
Browse files Browse the repository at this point in the history
  • Loading branch information
Grumbel committed Aug 8, 2014
1 parent 21d88a9 commit a05e54b
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/supertux/console.hpp
Expand Up @@ -62,26 +62,6 @@ class Console

bool hasFocus(); /**< true if characters should be sent to the console instead of their normal target */

template<typename T> static bool string_is(std::string s) {
std::istringstream iss(s);
T i;
if ((iss >> i) && iss.eof()) {
return true;
} else {
return false;
}
}

template<typename T> 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<std::string> history; /**< command history. New lines get added to back. */
std::list<std::string>::iterator history_position; /**< item of command history that is currently displayed */
Expand Down

0 comments on commit a05e54b

Please sign in to comment.