]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
exporter: drop unused function
authorKefu Chai <tchaikov@gmail.com>
Tue, 13 Feb 2024 06:21:11 +0000 (14:21 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 13 Feb 2024 06:44:08 +0000 (14:44 +0800)
string_is_digit() is not used, so drop it. `string_is_digit()` is
not defined or used, so drop it as well.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/exporter/util.cc
src/exporter/util.h

index 9b5108390cb8a6f6826bf7e0ad3a00181f5c41e7..e611c2a732e484422aa465932a08199845181ef6 100644 (file)
@@ -35,14 +35,6 @@ void BlockTimer::stop() {
        }
 }
 
-bool string_is_digit(std::string s) {
-       size_t i = 0;
-       while (std::isdigit(s[i]) && i < s.size()) {
-               i++;
-       }
-       return i >= s.size();
-}
-
 std::string read_file_to_string(std::string path) {
        std::ifstream is(path);
        std::stringstream buffer;
index 243568b14d21d61beb6a9108306dec84140892b5..66692c1a5b76f10e7068fc3447c6089555884c8c 100644 (file)
@@ -17,8 +17,6 @@ class BlockTimer {
        std::chrono::time_point<std::chrono::high_resolution_clock> t1, t2;
 };
 
-bool string_is_digit(std::string s);
 std::string read_file_to_string(std::string path);
-std::string get_hostname(std::string path);
 
 void promethize(std::string &name);