summaryrefslogtreecommitdiff
path: root/src/Util.hpp
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2023-02-21 21:34:18 +0100
committerJoel Rosdahl <joel@rosdahl.net>2023-03-04 10:10:20 +0100
commit66c9c76151497638f1be2bb05ccc2d58d075fc2d (patch)
treeebafdebf63cccc72fa547376d86d935d5a85ad71 /src/Util.hpp
parentd62b9df5546bee65795188b4e4cbd8dc872887d7 (diff)
downloadccache-66c9c76151497638f1be2bb05ccc2d58d075fc2d.tar.gz
refactor: Move Util::parse_size to util
Diffstat (limited to 'src/Util.hpp')
-rw-r--r--src/Util.hpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/Util.hpp b/src/Util.hpp
index 7f7be73e..d1a4796f 100644
--- a/src/Util.hpp
+++ b/src/Util.hpp
@@ -277,11 +277,6 @@ std::string normalize_concrete_absolute_path(const std::string& path);
// into seconds. Throws `core::Error` on error.
uint64_t parse_duration(std::string_view duration);
-// Parse a "size value", i.e. a string that can end in k, M, G, T (10-based
-// suffixes) or Ki, Mi, Gi, Ti (2-based suffixes). For backward compatibility, K
-// is also recognized as a synonym of k. Throws `core::Error` on parse error.
-uint64_t parse_size(const std::string& value);
-
#ifndef _WIN32
// Like readlink(2) but returns the string (or the empty string on failure).
std::string read_link(const std::string& path);