diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-01-15 11:48:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-01-15 11:48:43 +0200 |
commit | d53786dfb6eda448b2091c5b8ab371701851efb0 (patch) | |
tree | 1c86cceb1f400372310588874e088752648b0611 | |
parent | 8345d5eba80a11de363c8a96070316fdd6b6fd22 (diff) |
Disable questionable unused functionality
-rw-r--r-- | libbuild2/context.cxx | 2 | ||||
-rw-r--r-- | libbuild2/context.hxx | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libbuild2/context.cxx b/libbuild2/context.cxx index b78cd27..3224dc1 100644 --- a/libbuild2/context.cxx +++ b/libbuild2/context.cxx @@ -896,6 +896,7 @@ namespace build2 //text << this_thread::get_id () << " phase switch " << o << " " << n; } +#if 0 phase_switch:: phase_switch (phase_unlock&& u, phase_lock&& l) : old_phase (u.l->phase), new_phase (l.phase) @@ -903,6 +904,7 @@ namespace build2 phase_lock_instance = u.l; // Disarms phase_lock u.l = nullptr; // Disarms phase_unlock } +#endif phase_switch:: ~phase_switch () noexcept (false) diff --git a/libbuild2/context.hxx b/libbuild2/context.hxx index e3ffa3a..edbf780 100644 --- a/libbuild2/context.hxx +++ b/libbuild2/context.hxx @@ -606,10 +606,12 @@ namespace build2 // phase_lock pl; // phase_switch ps (move (pu), move (pl)); // + // @@ Need to re-confirm it does the right thing if/when we need it. + // struct LIBBUILD2_SYMEXPORT phase_switch { phase_switch (context&, run_phase); - phase_switch (phase_unlock&&, phase_lock&&); + //phase_switch (phase_unlock&&, phase_lock&&); ~phase_switch () noexcept (false); run_phase old_phase, new_phase; |