aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2015-02-05 20:35:02 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-02-05 20:35:02 (GMT)
commit92940571f3113a27673b6e79dba26e745079ff90 (patch)
tree169f08f96260ba79513aca81e3f30b9a95092f69 /src
parent0da4be2a0114d4419ceb70a4c6b6342f8fd79852 (diff)
downloadfluxbox-92940571f3113a27673b6e79dba26e745079ff90.zip
fluxbox-92940571f3113a27673b6e79dba26e745079ff90.tar.bz2
Cleanup; Remove unused function
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/StringUtil.hh6
-rw-r--r--src/FbTk/Timer.cc2
-rw-r--r--src/Resources.cc2
3 files changed, 1 insertions, 9 deletions
diff --git a/src/FbTk/StringUtil.hh b/src/FbTk/StringUtil.hh
index 930e0b5..bc17158 100644
--- a/src/FbTk/StringUtil.hh
+++ b/src/FbTk/StringUtil.hh
@@ -94,12 +94,6 @@ std::string::size_type removeTrailingWhitespace(std::string &str);
94/// splits input at first non-leading whitespace and returns both parts 94/// splits input at first non-leading whitespace and returns both parts
95void getFirstWord(const std::string &in, std::string &first, std::string &rest); 95void getFirstWord(const std::string &in, std::string &first, std::string &rest);
96 96
97template <typename T>
98void fromString(const char *in, T &out) {
99 FbTk_istringstream iss(in);
100 iss >> out;
101}
102
103template <typename Container> 97template <typename Container>
104static void stringTokensBetween(Container &container, const std::string &in, 98static void stringTokensBetween(Container &container, const std::string &in,
105 std::string &rest, char first, char last, 99 std::string &rest, char first, char last,
diff --git a/src/FbTk/Timer.cc b/src/FbTk/Timer.cc
index 61875f7..05d938b 100644
--- a/src/FbTk/Timer.cc
+++ b/src/FbTk/Timer.cc
@@ -239,7 +239,7 @@ Command<void> *DelayedCmd::parse(const std::string &command,
239 return 0; 239 return 0;
240 240
241 uint64_t delay = 200; 241 uint64_t delay = 200;
242 StringUtil::fromString<uint64_t>(args.c_str() + err, delay); 242 StringUtil::extractNumber(args.c_str() + err, delay);
243 243
244 return new DelayedCmd(cmd, delay); 244 return new DelayedCmd(cmd, delay);
245} 245}
diff --git a/src/Resources.cc b/src/Resources.cc
index affaf19..aacff60 100644
--- a/src/Resources.cc
+++ b/src/Resources.cc
@@ -35,8 +35,6 @@
35using std::string; 35using std::string;
36using std::vector; 36using std::vector;
37 37
38using namespace FbTk;
39
40//----------------------------------------------------------------- 38//-----------------------------------------------------------------
41//---- accessors for int, bool, and some enums with Resource ------ 39//---- accessors for int, bool, and some enums with Resource ------
42//----------------------------------------------------------------- 40//-----------------------------------------------------------------