mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 03:21:16 -03:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user