Update of /cvsroot/pclasses/pclasses2/src/IO
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31217/src/IO
Modified Files:
IODevice.cpp
Log Message:
Removed IOListener.
Index: IODevice.cpp
===================================================================
RCS file: /cvsroot/pclasses/pclasses2/src/IO/IODevice.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- IODevice.cpp 7 Jan 2005 13:33:15 -0000 1.7
+++ IODevice.cpp 30 Jan 2005 17:09:13 -0000 1.8
@@ -251,18 +251,6 @@
_eof = eof;
}
-void IODevice::addListener(IOListener& l)
-{
-}
-
-void IODevice::updateListener(IOListener& l)
-{
-}
-
-void IODevice::removeListener(IOListener& l)
-{
-}
-
IODevice& IODevice::operator=(const IODevice& dev) throw()
{
if(_filterOwner)
@@ -288,42 +276,6 @@
}
-IOListener::IOListener(IODevice& dev, int eventMask) throw()
-: _dev(&dev), _eventMask(eventMask)
-{
- dev.addListener(*this);
-}
-
-IOListener::~IOListener() throw()
-{
- if(_dev)
- _dev->removeListener(*this);
-}
-
-IODevice& IOListener::device() const throw()
-{
- return *_dev;
-}
-
-void IOListener::setDevice(IODevice& dev) throw()
-{
- if(_dev)
- _dev->removeListener(*this);
-
- _dev = &dev;
- _dev->addListener(*this);
-}
-
-int IOListener::eventMask() const throw()
-{
- return _eventMask;
-}
-
-void IOListener::setEventMask(int eventMask) throw()
-{
- _eventMask = eventMask;
-}
-
} // !namespace IO
} // !namespace P
|