Remove some dead code

This commit is contained in:
Fabian Boehm 2022-08-27 20:33:39 +02:00
parent b08490f051
commit 26285280a9
2 changed files with 0 additions and 10 deletions

View File

@ -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()>;

View File

@ -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.