diff options
Diffstat (limited to 'Observer.cpp')
-rw-r--r-- | Observer.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Observer.cpp b/Observer.cpp index 39a8245..cd8589f 100644 --- a/Observer.cpp +++ b/Observer.cpp @@ -1,18 +1,12 @@ -#include <iostream> - #include "Observer.h" -void Subject::attach(Observer * obs){ - // std::cout << "added" << std::endl; +void Subject::attach(Observer * obs) { this->observers.push_back(obs); } -void Subject::detach(Observer *){ - -} +void Subject::detach(Observer *) { } int Subject::size() { - // std::cout << "subject list size " << this->observers.size() << std::endl; return this->observers.size(); } |