Commit c3b96b49 authored by David COME's avatar David COME
Browse files

Removed some old unneeded endOfWork function

parent 0521408a
......@@ -61,8 +61,7 @@ public:
m_freeBlocks.push(mb);
return ret;
}
virtual bool endOfWork() throw() { return false; }
/* Rest of the data Fifo interface. */
MemBlock * getFreeBlock() throw(castor::exception::Exception) {
return m_freeBlocks.pop();
......
......@@ -35,10 +35,7 @@ namespace daemon {
class MemoryManagerClient {
public:
virtual bool endOfWork() throw() = 0;
virtual bool provideBlock(MemBlock */*mb*/) throw(MemException) {
throw MemException(std::string("Tring to provide a memory block to the wrong client"));
};
virtual bool provideBlock(MemBlock */*mb*/) =0;
virtual ~MemoryManagerClient() throw() {}
};
......
......@@ -40,8 +40,7 @@ public:
TapeReadFileTask(castor::tape::tapegateway::FileToRecallStruct * ftr,
DataConsumer & destination, RecallMemoryManager & mm):
m_fileToRecall(ftr), m_fifo(destination), m_mm(mm) {}
/* Implementation of the TapeReadTask interface*/
virtual bool endOfWork() { return false; }
virtual void execute(castor::tape::tapeFile::ReadSession & rs,
castor::log::LogContext & lc) {
using castor::log::Param;
......
......@@ -34,7 +34,6 @@ namespace tapeserver {
namespace daemon {
class TapeReadTask {
public:
virtual bool endOfWork() = 0;
virtual void execute(castor::tape::tapeFile::ReadSession & /*rs*/,
castor::log::LogContext & /*lc*/) {
throw MemException("Tring to execute a non-execuatble TapeReadTask");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment