summaryrefslogtreecommitdiff
path: root/cpp/demo/IceStorm/counter/CounterObserverI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/IceStorm/counter/CounterObserverI.cpp')
-rw-r--r--cpp/demo/IceStorm/counter/CounterObserverI.cpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/cpp/demo/IceStorm/counter/CounterObserverI.cpp b/cpp/demo/IceStorm/counter/CounterObserverI.cpp
deleted file mode 100644
index ca193c34309..00000000000
--- a/cpp/demo/IceStorm/counter/CounterObserverI.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved.
-//
-// This copy of Ice is licensed to you under the terms described in the
-// ICE_LICENSE file included in this distribution.
-//
-// **********************************************************************
-
-#include <Ice/Ice.h>
-
-#include <CounterObserverI.h>
-
-using namespace std;
-
-CounterObserverI::CounterObserverI(const MTPrinterPtr& printer) :
- _value(0),
- _printer(printer)
-{
-}
-
-void
-CounterObserverI::init(int value, const Ice::Current&)
-{
- IceUtil::Mutex::Lock sync(_mutex);
- _value = value;
- ostringstream ostr;
- ostr << "init: " << value << endl;
- _printer->print(ostr.str());
-}
-
-void
-CounterObserverI::inc(int value, const Ice::Current&)
-{
- IceUtil::Mutex::Lock sync(_mutex);
- _value += value;
- ostringstream ostr;
- ostr << "int: " << value << " total: " << _value << endl;
- _printer->print(ostr.str());
-}
-