diff options
author | Marat Dukhan <marat@fb.com> | 2017-08-18 00:54:38 -0700 |
---|---|---|
committer | Marat Dukhan <marat@fb.com> | 2017-08-18 00:54:38 -0700 |
commit | 1d91a109f8f9ca77aa60cc5ef95e52c71705cb8a (patch) | |
tree | 2f45d4d6709f5d251898e214055a8dcc58fb0d1c /src/linux | |
parent | a45efef3c649e28d47ab682863256c9f219ea8c9 (diff) | |
download | cpuinfo-1d91a109f8f9ca77aa60cc5ef95e52c71705cb8a.tar.gz |
Remove dead code on Linux
Diffstat (limited to 'src/linux')
-rw-r--r-- | src/linux/smallfile.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/linux/smallfile.c b/src/linux/smallfile.c index cc92146..207dd91 100644 --- a/src/linux/smallfile.c +++ b/src/linux/smallfile.c @@ -16,20 +16,6 @@ #include <log.h> -inline static const char* parse_number(const char* string, const char* end, uint32_t number_ptr[restrict static 1]) { - uint32_t number = 0; - while (string != end) { - const uint32_t digit = (uint32_t) (*string) - (uint32_t) '0'; - if (digit >= 10) { - return string; - } - number = number * UINT32_C(10) + digit; - string += 1; - } - *number_ptr = number; - return end; -} - bool cpuinfo_linux_parse_small_file(const char* filename, size_t buffer_size, cpuinfo_smallfile_callback callback, void* context) { int file = -1; bool status = false; |