mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 00:47:30 +00:00
Remove extract_most_significant_digit
This is now unused.
This commit is contained in:
parent
99dfbaffb9
commit
0f29e0de2f
1 changed files with 0 additions and 12 deletions
|
@ -747,18 +747,6 @@ wcstring escape_string(const wcstring &in, escape_flags_t flags, escape_string_s
|
|||
return result;
|
||||
}
|
||||
|
||||
/// Crappy function to extract the most significant digit of an unsigned long long value.
|
||||
static char extract_most_significant_digit(unsigned long long *xp) {
|
||||
unsigned long long place_value = 1;
|
||||
unsigned long long x = *xp;
|
||||
while (x >= 10) {
|
||||
x /= 10;
|
||||
place_value *= 10;
|
||||
}
|
||||
*xp -= (place_value * x);
|
||||
return x + '0';
|
||||
}
|
||||
|
||||
double timef() {
|
||||
struct timeval tv;
|
||||
assert_with_errno(gettimeofday(&tv, nullptr) != -1);
|
||||
|
|
Loading…
Reference in a new issue