From b4c3a3f2f570dadfc0cf4981357b0c8c1744c390 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Thu, 24 Apr 2025 15:17:35 +0100 Subject: [PATCH] refactor: Remove unused `util::is_ready()` function Commit ffd4c731a2c7c09f34e7b81a16e04bdf91fa973d introduced the `util::is_ready()` function, which has never been used internally and is not part of the public API. This change removes the function. --- subprocess.hpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/subprocess.hpp b/subprocess.hpp index 0a23560..aa26c02 100755 --- a/subprocess.hpp +++ b/subprocess.hpp @@ -182,12 +182,6 @@ using env_vector_t = std::vector; //-------------------------------------------------------------------- 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) {