aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/utility.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-11-23 08:57:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-11-23 08:57:45 +0200
commitc6b1d1dd870b3370d0a09fb4600e3a6b03326f35 (patch)
treef400b0d4a67bd1e067b545372e7742c5665f5caf /libbuild2/utility.ixx
parentf19959de304afaff2b3d539c9bef1f493ede5fbd (diff)
Rework diag_buffer interface to facilitate correct destruction order
Diffstat (limited to 'libbuild2/utility.ixx')
-rw-r--r--libbuild2/utility.ixx48
1 files changed, 0 insertions, 48 deletions
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 <typename T, typename F>
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 <typename T, typename F>
- inline T
run (context& ctx,
const process_env& pe,
const char* const* args,
@@ -221,30 +197,6 @@ namespace build2
return r;
}
- template <typename T, typename F>
- 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)
{