Remove the unused stringless class
Magnus Fromreide
PATCH 1/2 Remove the unused stringless class
Signed-off-by Magnus Fromreide <magfr(a)lysator.liu.se>
--- src/lib.cpp | 7 ------- src/lib.h | 6 ------ 2 files changed, 13 deletions(-)
src/lib.cpp +0 -7
@@ -158,13 +158,6 @@ void set_max_cpu(int cpu) } -bool stringless::operator()(const char * const & lhs, const char * const & rhs) const -{ - if (strcmp(lhs, rhs) < 0) - return true; - return false; -} - void write_sysfs(const string &filename, const string &value) { ofstream file;
src/lib.h +0 -6
@@ -49,12 +49,6 @@ extern char *hz_to_human(unsigned long hz, char *buffer, int digits = 2);extern const char *kernel_function (uint64_t address); -class stringless -{ -public: - bool operator()(const char * const & lhs, const char * const & rhs) const ; -}; -
Signature · 1 line
1.7.10