drop unused functions and configure checks

Remove the following C++ functions/methods, which have no callers:

fallback.cpp:
- wcstod_l

proc.cpp:
- job_t::get_processes

wutil.cpp:
- fish_wcstoll
- fish_wcstoull

Also drop unused configure checks/defines:
- HAVE_WCSTOD_L
- HAVE_USELOCALE
This commit is contained in:
David Adam
2023-07-13 22:00:53 +08:00
parent 44cf0e5043
commit 861da91bf1
8 changed files with 0 additions and 119 deletions

View File

@@ -262,16 +262,3 @@ int flock(int fd, int op) {
}
#endif // HAVE_FLOCK
#if !defined(HAVE_WCSTOD_L) && !defined(__NetBSD__)
#undef wcstod_l
#include <locale.h>
// For platforms without wcstod_l C extension, wrap wcstod after changing the
// thread-specific locale.
double fish_compat::wcstod_l(const wchar_t *enptr, wchar_t **endptr, locale_t loc) {
locale_t prev_locale = uselocale(loc);
double ret = std::wcstod(enptr, endptr);
uselocale(prev_locale);
return ret;
}
#endif // defined(wcstod_l)