mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-01 11:23:59 +08:00
Remove some dead code
This commit is contained in:
parent
b08490f051
commit
26285280a9
|
@ -272,12 +272,6 @@ void vec_append(std::vector<T> &receiver, std::vector<T> &&donator) {
|
|||
}
|
||||
}
|
||||
|
||||
/// Move an object into a shared_ptr.
|
||||
template <typename T>
|
||||
std::shared_ptr<T> move_to_sharedptr(T &&v) {
|
||||
return std::make_shared<T>(std::move(v));
|
||||
}
|
||||
|
||||
/// A function type to check for cancellation.
|
||||
/// \return true if execution should cancel.
|
||||
using cancel_checker_t = std::function<bool()>;
|
||||
|
|
|
@ -255,10 +255,6 @@ static relaxed_atomic_bool_t g_use_posix_spawn{false};
|
|||
|
||||
bool get_use_posix_spawn() { return g_use_posix_spawn; }
|
||||
|
||||
extern "C" {
|
||||
const char *gnu_get_libc_version();
|
||||
}
|
||||
|
||||
static bool allow_use_posix_spawn() {
|
||||
// OpenBSD's posix_spawn returns status 127, instead of erroring with ENOEXEC, when faced with a
|
||||
// shebangless script. Disable posix_spawn on OpenBSD.
|
||||
|
|
Loading…
Reference in New Issue
Block a user