all repos — fluxbox @ ad0951ca539d23f8f0ed9a1e8519feacc2ef907c

custom fork of the fluxbox windowmanager

Remove Observers from testSignal.cc
Pavel Labath pavelo@centrum.sk
commit

ad0951ca539d23f8f0ed9a1e8519feacc2ef907c

parent

4f89009c9e6521910442eabc36d572367398c0bf

1 files changed, 0 insertions(+), 23 deletions(-)

jump to
M src/tests/testSignals.ccsrc/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