aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2014-03-13 19:49:54 +0000
committerVincent Richard <[email protected]>2014-03-13 19:49:54 +0000
commit86788ce022767eb706f8cb60fa79d08ad4724131 (patch)
treeae773b72aa2eb47656e0251ab6cab5e62aeba18f
parentPremature return if message list/set is empty. (diff)
downloadvmime-86788ce022767eb706f8cb60fa79d08ad4724131.tar.gz
vmime-86788ce022767eb706f8cb60fa79d08ad4724131.zip
Removed unused/unimplemented function.
-rw-r--r--doc/book/basics.tex7
-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
4 files changed, 0 insertions, 30 deletions
diff --git a/doc/book/basics.tex b/doc/book/basics.tex
index 62cedb9e..fefd0515 100644
--- a/doc/book/basics.tex
+++ b/doc/book/basics.tex
@@ -806,8 +806,6 @@ of progress when they are performing an operation.
The {\vcode vmime::utility::progressListener} interface is rather simple:
\begin{lstlisting}
-const bool cancel() const;
-
void start(const int predictedTotal);
void progress(const int current, const int currentTotal);
void stop(const int total);
@@ -818,8 +816,3 @@ of the operation, respectively. {\vcode progress()} is called each time the
status of progress changes (eg. a chunk of data has been processed). There is
no unit specified for the values passed in argument. It depends on the
notifier: it can be bytes, percent, number of messages...
-
-Your listener can return {\vcode} in the {\vcode cancel()} method to cancel
-the operation. However, be warned that cancelling is not always supported by
-the source object.
-
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);