From ad0951ca539d23f8f0ed9a1e8519feacc2ef907c Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Sat, 30 Apr 2011 17:48:33 +0200 Subject: Remove Observers from testSignal.cc --- src/tests/testSignals.cc | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/tests/testSignals.cc b/src/tests/testSignals.cc index 9b9d151..d316a62 100644 --- a/src/tests/testSignals.cc +++ b/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 @@ -154,26 +151,6 @@ int main() { 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 source; - FbTk::relaySignal(source, destination); - // the new signal should now make the old - // subject notify its observers - source.emit("hello world"); - } // Test argument selector { -- cgit v0.11.2