Removed unused/unimplemented function.

This commit is contained in:
Vincent Richard 2014-03-13 20:49:54 +01:00
parent 642cdf42f6
commit 86788ce022
4 changed files with 0 additions and 30 deletions

View File

@ -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.

View File

@ -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())
{

View File

@ -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)

View File

@ -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);