Cleanup; Remove unused function

This commit is contained in:
Mathias Gumz 2015-02-05 21:35:02 +01:00
parent 0da4be2a01
commit 92940571f3
3 changed files with 1 additions and 9 deletions

View file

@ -94,12 +94,6 @@ std::string::size_type removeTrailingWhitespace(std::string &str);
/// splits input at first non-leading whitespace and returns both parts
void getFirstWord(const std::string &in, std::string &first, std::string &rest);
template <typename T>
void fromString(const char *in, T &out) {
FbTk_istringstream iss(in);
iss >> out;
}
template <typename Container>
static void stringTokensBetween(Container &container, const std::string &in,
std::string &rest, char first, char last,

View file

@ -239,7 +239,7 @@ Command<void> *DelayedCmd::parse(const std::string &command,
return 0;
uint64_t delay = 200;
StringUtil::fromString<uint64_t>(args.c_str() + err, delay);
StringUtil::extractNumber(args.c_str() + err, delay);
return new DelayedCmd(cmd, delay);
}

View file

@ -35,8 +35,6 @@
using std::string;
using std::vector;
using namespace FbTk;
//-----------------------------------------------------------------
//---- accessors for int, bool, and some enums with Resource ------
//-----------------------------------------------------------------