diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-07-17 13:38:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-17 13:38:50 -0500 |
commit | f99889b0c1260fccf28daac995e58312912bae9f (patch) | |
tree | c9bba127e62aedef587ee7da83950281a4c131f4 /src/smt/managed_ostreams.h | |
parent | e8df6f67cc2654f50d49995377a4b411668235e1 (diff) |
Replace options listener infrastructure (#4764)
This replaces the old options listener infrastructure with the OptionsManager introduced in cb8d041.
It eliminates a "beforeSearchListener", which was a custom way of some options throwing a modal exception if they were set after initialization. Now all options are consistent: no option can be set after initialization.
It also moves managed ostream objects to the OptionsManager.
@mpreiner The next step will be to remove the "notifies" field from the Options build system and then proceed with cleaning src/options/.
Diffstat (limited to 'src/smt/managed_ostreams.h')
-rw-r--r-- | src/smt/managed_ostreams.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/smt/managed_ostreams.h b/src/smt/managed_ostreams.h index 577ef3226..c53def1f8 100644 --- a/src/smt/managed_ostreams.h +++ b/src/smt/managed_ostreams.h @@ -74,20 +74,6 @@ class ManagedOstream { std::ostream* d_managed; }; /* class ManagedOstream */ -class SetToDefaultSourceListener : public Listener { - public: - SetToDefaultSourceListener(ManagedOstream* managedOstream) - : d_managedOstream(managedOstream){} - - void notify() override - { - d_managedOstream->set(d_managedOstream->defaultSource()); - } - - private: - ManagedOstream* d_managedOstream; -}; - /** * This controls the memory associated with --dump-to. * This is is assumed to recieve a set whenever diagnosticChannelName |