Remove Observers from testSignal.cc
Pavel Labath pavelo@centrum.sk
1 files changed,
0 insertions(+),
23 deletions(-)
jump to
M
src/tests/testSignals.cc
→
src/tests/testSignals.cc
@@ -3,9 +3,6 @@ using namespace std;
#include "../FbTk/Signal.hh" #include "../FbTk/MemFun.hh" -#include "../FbTk/RelaySignal.hh" -#include "../FbTk/Observer.hh" -#include "../FbTk/Subject.hh" #include <string>@@ -153,26 +150,6 @@ more_args.emit("This should be visible for takeIt(string)",
"Visible to the two args function.", 2.9); - } - // Test relay new signals to old - { - cout << "---------- Testing relay of signals" << endl; - struct Observer: public FbTk::Observer { - void update(FbTk::Subject* subj) { - cout << "Observer called." << endl; - } - }; - // setup old subject->observer listening - FbTk::Subject destination; - Observer obs; - destination.attach(&obs); - // create a new signal and relay it to the - // old subject - FbTk::Signal<string> source; - FbTk::relaySignal(source, destination); - // the new signal should now make the old - // subject notify its observers - source.emit("hello world"); } // Test argument selector