From c6b1d1dd870b3370d0a09fb4600e3a6b03326f35 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 23 Nov 2022 08:57:45 +0200 Subject: Rework diag_buffer interface to facilitate correct destruction order --- libbuild2/utility.ixx | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) (limited to 'libbuild2/utility.ixx') diff --git a/libbuild2/utility.ixx b/libbuild2/utility.ixx index 3948623..58ea8db 100644 --- a/libbuild2/utility.ixx +++ b/libbuild2/utility.ixx @@ -169,30 +169,6 @@ namespace build2 template inline T - run (diag_buffer& dbuf, - uint16_t verbosity, - const process_env& pe, - const char* const* args, - F&& f, - sha256* checksum) - { - T r; - run (dbuf, - verbosity, - pe, args, - verbosity - 1, - [&r, &f] (string& l, bool last) // Small function optimmization. - { - r = f (l, last); - return r.empty (); - }, - true /* trim */, - checksum); - return r; - } - - template - inline T run (context& ctx, const process_env& pe, const char* const* args, @@ -221,30 +197,6 @@ namespace build2 return r; } - template - inline T - run (diag_buffer& dbuf, - const process_env& pe, - const char* const* args, - uint16_t finish_verbosity, - F&& f, - sha256* checksum) - { - T r; - run (dbuf, - verb_never, - pe, args, - finish_verbosity, - [&r, &f] (string& l, bool last) - { - r = f (l, last); - return r.empty (); - }, - true /* trim */, - checksum); - return r; - } - inline void hash_path (sha256& cs, const path& p, const dir_path& prefix) { -- cgit v1.1