projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
21d88a9
)
Removed some unused code from Console
author
Ingo Ruhnke
<grumbel@gmail.com>
Fri, 8 Aug 2014 00:05:44 +0000
(
02:05
+0200)
committer
Ingo Ruhnke
<grumbel@gmail.com>
Fri, 8 Aug 2014 03:53:11 +0000
(
05:53
+0200)
src/supertux/console.hpp
patch
|
blob
|
history
diff --git
a/src/supertux/console.hpp
b/src/supertux/console.hpp
index
d81bbf3
..
9c60898
100644
(file)
--- 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 */
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 */
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 */