diff --git a/src/util/subprocess.h b/src/util/subprocess.h index 4acfa8ff831..4c31a23d417 100644 --- a/src/util/subprocess.h +++ b/src/util/subprocess.h @@ -159,12 +159,6 @@ public: //-------------------------------------------------------------------- namespace util { - template - inline bool is_ready(std::shared_future const &f) - { - return f.wait_for(std::chrono::seconds(0)) == std::future_status::ready; - } - inline void quote_argument(const std::wstring &argument, std::wstring &command_line, bool force) { @@ -724,35 +718,6 @@ class Popen; */ namespace detail { - -// Metaprogram for searching a type within -// a variadic parameter pack -// This is particularly required to do a compile time -// checking of the arguments provided to 'check_output' function -// wherein the user is not expected to provide an 'output' option. - -template struct param_pack{}; - -template struct has_type; - -template -struct has_type> { - static constexpr bool value = false; -}; - -template -struct has_type> { - static constexpr bool value = true; -}; - -template -struct has_type> { - static constexpr bool value = - std::is_same::type>::value ? true : has_type>::value; -}; - -//---- - /*! * A helper class to Popen class for setting * options as provided in the Popen constructor