aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vmime/net/pop3/POP3Response.cpp6
-rw-r--r--src/vmime/utility/progressListener.cpp6
-rw-r--r--src/vmime/utility/progressListener.hpp11
3 files changed, 0 insertions, 23 deletions
diff --git a/src/vmime/net/pop3/POP3Response.cpp b/src/vmime/net/pop3/POP3Response.cpp
index 2435a3d0..bdbfb23c 100644
--- a/src/vmime/net/pop3/POP3Response.cpp
+++ b/src/vmime/net/pop3/POP3Response.cpp
@@ -254,12 +254,6 @@ void POP3Response::readResponseImpl
while (!is.eof())
{
-#if 0 // not supported
- // Check for possible cancellation
- if (progress && progress->cancel())
- throw exceptions::operation_cancelled();
-#endif
-
// Check whether the time-out delay is elapsed
if (m_timeoutHandler && m_timeoutHandler->isTimeOut())
{
diff --git a/src/vmime/utility/progressListener.cpp b/src/vmime/utility/progressListener.cpp
index cef074e5..6764c563 100644
--- a/src/vmime/utility/progressListener.cpp
+++ b/src/vmime/utility/progressListener.cpp
@@ -37,12 +37,6 @@ progressListenerSizeAdapter::progressListenerSizeAdapter
}
-bool progressListenerSizeAdapter::cancel() const
-{
- return (m_wrapped ? m_wrapped->cancel() : false);
-}
-
-
void progressListenerSizeAdapter::start(const size_t predictedTotal)
{
if (m_wrapped)
diff --git a/src/vmime/utility/progressListener.hpp b/src/vmime/utility/progressListener.hpp
index 4d0e9bf8..e86fb808 100644
--- a/src/vmime/utility/progressListener.hpp
+++ b/src/vmime/utility/progressListener.hpp
@@ -45,15 +45,6 @@ protected:
public:
- /** Allow the caller object to cancel the current operation.
- *
- * @warning WARNING: this is implementation-dependent: cancelling
- * may not be supported by the notifier object.
- *
- * @return true to cancel the operation, false otherwise
- */
- virtual bool cancel() const = 0;
-
/** Called at the beginning of the operation.
*
* @param predictedTotal predicted amount of units (this has
@@ -92,8 +83,6 @@ public:
*/
progressListenerSizeAdapter(progressListener* list, const size_t total);
- bool cancel() const;
-
void start(const size_t predictedTotal);
void progress(const size_t current, const size_t currentTotal);
void stop(const size_t total);