From 26285280a90f04709d55431c0b958d495be1cb1d Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Sat, 27 Aug 2022 20:33:39 +0200 Subject: [PATCH] Remove some dead code --- src/common.h | 6 ------ src/env_dispatch.cpp | 4 ---- 2 files changed, 10 deletions(-) diff --git a/src/common.h b/src/common.h index 9a7b954a4..d6e0e43ff 100644 --- a/src/common.h +++ b/src/common.h @@ -272,12 +272,6 @@ void vec_append(std::vector &receiver, std::vector &&donator) { } } -/// Move an object into a shared_ptr. -template -std::shared_ptr move_to_sharedptr(T &&v) { - return std::make_shared(std::move(v)); -} - /// A function type to check for cancellation. /// \return true if execution should cancel. using cancel_checker_t = std::function; diff --git a/src/env_dispatch.cpp b/src/env_dispatch.cpp index 8e5730af7..28282f13e 100644 --- a/src/env_dispatch.cpp +++ b/src/env_dispatch.cpp @@ -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.