diff options
| author | Alan Conway <aconway@apache.org> | 2010-01-14 18:55:46 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2010-01-14 18:55:46 +0000 |
| commit | 8455ba0b116208f47ce238b384d4af274fa0edb6 (patch) | |
| tree | 93afbe62eb9e823b04744ff9979f095f16eb3c4a /cpp/src/qpid/sys | |
| parent | f0afda45f86254a027317f4ef540138ddeaf7b87 (diff) | |
| download | qpid-python-8455ba0b116208f47ce238b384d4af274fa0edb6.tar.gz | |
Removed dead code: OutputTask::hasOutput and Queue::checkForMessages.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@899356 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys')
| -rw-r--r-- | cpp/src/qpid/sys/AggregateOutput.cpp | 5 | ||||
| -rw-r--r-- | cpp/src/qpid/sys/AggregateOutput.h | 1 | ||||
| -rw-r--r-- | cpp/src/qpid/sys/OutputTask.h | 7 |
3 files changed, 0 insertions, 13 deletions
diff --git a/cpp/src/qpid/sys/AggregateOutput.cpp b/cpp/src/qpid/sys/AggregateOutput.cpp index 709d3bc640..4f0a4fa5af 100644 --- a/cpp/src/qpid/sys/AggregateOutput.cpp +++ b/cpp/src/qpid/sys/AggregateOutput.cpp @@ -34,11 +34,6 @@ void AggregateOutput::activateOutput() { control.activateOutput(); } void AggregateOutput::giveReadCredit(int32_t credit) { control.giveReadCredit(credit); } -bool AggregateOutput::hasOutput() { - Mutex::ScopedLock l(lock); - return !tasks.empty(); -} - // Clear the busy flag and notify waiting threads in destructor. struct ScopedBusy { bool& flag; diff --git a/cpp/src/qpid/sys/AggregateOutput.h b/cpp/src/qpid/sys/AggregateOutput.h index 71ad713eb7..6dad998bb0 100644 --- a/cpp/src/qpid/sys/AggregateOutput.h +++ b/cpp/src/qpid/sys/AggregateOutput.h @@ -61,7 +61,6 @@ class AggregateOutput : public OutputTask, public OutputControl // These functions must not be called concurrently with each other. QPID_COMMON_EXTERN bool doOutput(); - QPID_COMMON_EXTERN bool hasOutput(); QPID_COMMON_EXTERN void removeOutputTask(OutputTask* t); QPID_COMMON_EXTERN void removeAll(); diff --git a/cpp/src/qpid/sys/OutputTask.h b/cpp/src/qpid/sys/OutputTask.h index 005ae7dbc4..fb08a63cd0 100644 --- a/cpp/src/qpid/sys/OutputTask.h +++ b/cpp/src/qpid/sys/OutputTask.h @@ -32,13 +32,6 @@ namespace sys { *@return true if output was generated, false if there is no work to do. */ virtual bool doOutput() = 0; - - /** Check if there may be work to do, but don't do it. - * @return True if there may be work to do, false if there is none. - * Can to return a false positive, to allow implementations to do a - * faster check than doOutput(). Must never return a false negative. - */ - virtual bool hasOutput() = 0; }; } |
