diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-08-18 22:43:48 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-08-18 22:43:48 -0700 |
commit | d86e4a126eb37d62557f35ca7bd13d5e16ece648 (patch) | |
tree | fbaef04a8e88e063044b2f4e860158d2ef3e1464 | |
parent | 807b39da9aa62365f6a7494b7666c844a781f2c7 (diff) |
Clean up
-rwxr-xr-x | src/async/imap/MCIMAPAsyncConnection.cc | 14 | ||||
-rwxr-xr-x | src/async/imap/MCIMAPAsyncConnection.h | 4 | ||||
-rwxr-xr-x | src/async/imap/MCIMAPAsyncSession.cc | 14 | ||||
-rwxr-xr-x | src/async/imap/MCIMAPAsyncSession.h | 4 | ||||
-rw-r--r-- | src/async/imap/MCIMAPFetchFoldersOperation.cc | 15 | ||||
-rw-r--r-- | src/async/imap/MCIMAPFetchFoldersOperation.h | 1 | ||||
-rwxr-xr-x | src/core/imap/MCIMAPSession.cc | 12 | ||||
-rwxr-xr-x | src/core/imap/MCIMAPSession.h | 4 | ||||
-rwxr-xr-x | src/objc/imap/MCOIMAPSession.h | 3 | ||||
-rwxr-xr-x | src/objc/imap/MCOIMAPSession.mm | 1 |
10 files changed, 0 insertions, 72 deletions
diff --git a/src/async/imap/MCIMAPAsyncConnection.cc b/src/async/imap/MCIMAPAsyncConnection.cc index 789147e2..a5e46a58 100755 --- a/src/async/imap/MCIMAPAsyncConnection.cc +++ b/src/async/imap/MCIMAPAsyncConnection.cc @@ -86,7 +86,6 @@ IMAPAsyncConnection::IMAPAsyncConnection() mSession = new IMAPSession(); mQueue = new OperationQueue(); mDefaultNamespace = NULL; - //mDelimiter = 0; mLastFolder = NULL; mQueueCallback = new IMAPOperationQueueCallback(this); mQueue->setCallback(mQueueCallback); @@ -209,19 +208,6 @@ bool IMAPAsyncConnection::isVoIPEnabled() return mSession->isVoIPEnabled(); } -#if 0 -void IMAPAsyncConnection::setDelimiter(char delimiter) -{ - mSession->setDelimiter(delimiter); - mDelimiter = delimiter; -} - -char IMAPAsyncConnection::delimiter() -{ - return mDelimiter; -} -#endif - void IMAPAsyncConnection::setDefaultNamespace(IMAPNamespace * ns) { mSession->setDefaultNamespace(ns); diff --git a/src/async/imap/MCIMAPAsyncConnection.h b/src/async/imap/MCIMAPAsyncConnection.h index 720bd9c6..e7ceb283 100755 --- a/src/async/imap/MCIMAPAsyncConnection.h +++ b/src/async/imap/MCIMAPAsyncConnection.h @@ -67,9 +67,6 @@ namespace mailcore { virtual void setVoIPEnabled(bool enabled); virtual bool isVoIPEnabled(); - //virtual void setDelimiter(char delimiter); - //virtual char delimiter(); - virtual void setAutomaticConfigurationEnabled(bool enabled); virtual bool isAutomaticConfigurationEnabled(); @@ -136,7 +133,6 @@ namespace mailcore { private: IMAPSession * mSession; OperationQueue * mQueue; - //char mDelimiter; IMAPNamespace * mDefaultNamespace; String * mLastFolder; IMAPOperationQueueCallback * mQueueCallback; diff --git a/src/async/imap/MCIMAPAsyncSession.cc b/src/async/imap/MCIMAPAsyncSession.cc index b9cb5615..50c7dcde 100755 --- a/src/async/imap/MCIMAPAsyncSession.cc +++ b/src/async/imap/MCIMAPAsyncSession.cc @@ -33,7 +33,6 @@ IMAPAsyncSession::IMAPAsyncSession() mConnectionType = ConnectionTypeClear; mCheckCertificateEnabled = true; mVoIPEnabled = true; - //mDelimiter = 0; mDefaultNamespace = NULL; mTimeout = 30.; mConnectionLogger = NULL; @@ -150,18 +149,6 @@ bool IMAPAsyncSession::isVoIPEnabled() return mVoIPEnabled; } -#if 0 -void IMAPAsyncSession::setDelimiter(char delimiter) -{ - mDelimiter = delimiter; -} - -char IMAPAsyncSession::delimiter() -{ - return mDelimiter; -} -#endif - IMAPNamespace * IMAPAsyncSession::defaultNamespace() { return mDefaultNamespace; @@ -209,7 +196,6 @@ IMAPAsyncConnection * IMAPAsyncSession::session() session->setTimeout(mTimeout); session->setCheckCertificateEnabled(mCheckCertificateEnabled); session->setVoIPEnabled(mVoIPEnabled); - //session->setDelimiter(mDelimiter); session->setDefaultNamespace(mDefaultNamespace); #if 0 // should be implemented properly if (mAutomaticConfigurationDone) { diff --git a/src/async/imap/MCIMAPAsyncSession.h b/src/async/imap/MCIMAPAsyncSession.h index 920183f2..4360cdef 100755 --- a/src/async/imap/MCIMAPAsyncSession.h +++ b/src/async/imap/MCIMAPAsyncSession.h @@ -75,9 +75,6 @@ namespace mailcore { virtual void setVoIPEnabled(bool enabled); virtual bool isVoIPEnabled(); - //virtual void setDelimiter(char delimiter); - //virtual char delimiter(); - virtual void setDefaultNamespace(IMAPNamespace * ns); virtual IMAPNamespace * defaultNamespace(); @@ -157,7 +154,6 @@ namespace mailcore { ConnectionType mConnectionType; bool mCheckCertificateEnabled; bool mVoIPEnabled; - //char mDelimiter; IMAPNamespace * mDefaultNamespace; time_t mTimeout; bool mAllowsFolderConcurrentAccessEnabled; diff --git a/src/async/imap/MCIMAPFetchFoldersOperation.cc b/src/async/imap/MCIMAPFetchFoldersOperation.cc index 637c981c..e1f121e8 100644 --- a/src/async/imap/MCIMAPFetchFoldersOperation.cc +++ b/src/async/imap/MCIMAPFetchFoldersOperation.cc @@ -52,19 +52,4 @@ void IMAPFetchFoldersOperation::main() } MC_SAFE_RETAIN(mFolders); setError(error); - -#if 0 - char * delimiterData = (char *) malloc(1); - * delimiterData = session()->session()->delimiter(); - performMethodOnMainThread((Object::Method) &IMAPFetchFoldersOperation::setDelimiterDataOnMainThread, - delimiterData, true); -#endif } - -#if 0 -void IMAPFetchFoldersOperation::setDelimiterDataOnMainThread(char * delimiterData) -{ - session()->setDelimiter(* delimiterData); - free(delimiterData); -} -#endif diff --git a/src/async/imap/MCIMAPFetchFoldersOperation.h b/src/async/imap/MCIMAPFetchFoldersOperation.h index 2dd01831..057df493 100644 --- a/src/async/imap/MCIMAPFetchFoldersOperation.h +++ b/src/async/imap/MCIMAPFetchFoldersOperation.h @@ -35,7 +35,6 @@ namespace mailcore { String * /* IMAPFolder */ mFolder; bool mFetchSubscribedEnabled; Array * mFolders; - //void setDelimiterDataOnMainThread(char * delimiterData); }; } diff --git a/src/core/imap/MCIMAPSession.cc b/src/core/imap/MCIMAPSession.cc index 86a35b2a..3c64909f 100755 --- a/src/core/imap/MCIMAPSession.cc +++ b/src/core/imap/MCIMAPSession.cc @@ -477,18 +477,6 @@ bool IMAPSession::isVoIPEnabled() return mVoIPEnabled; } -#if 0 -void IMAPSession::setDelimiter(char delimiter) -{ - mDelimiter = delimiter; -} - -char IMAPSession::delimiter() -{ - return mDelimiter; -} -#endif - static bool hasError(int errorCode) { return ((errorCode != MAILIMAP_NO_ERROR) && (errorCode != MAILIMAP_NO_ERROR_AUTHENTICATED) && diff --git a/src/core/imap/MCIMAPSession.h b/src/core/imap/MCIMAPSession.h index 13222cd4..b2c7e25d 100755 --- a/src/core/imap/MCIMAPSession.h +++ b/src/core/imap/MCIMAPSession.h @@ -59,10 +59,6 @@ namespace mailcore { virtual bool isVoIPEnabled(); // Needed for fetchSubscribedFolders() and fetchAllFolders(). - //virtual void setDelimiter(char delimiter); - //virtual char delimiter(); - - // Needed for fetchSubscribedFolders() and fetchAllFolders(). virtual void setDefaultNamespace(IMAPNamespace * ns); virtual IMAPNamespace * defaultNamespace(); diff --git a/src/objc/imap/MCOIMAPSession.h b/src/objc/imap/MCOIMAPSession.h index fa22c913..e92a0636 100755 --- a/src/objc/imap/MCOIMAPSession.h +++ b/src/objc/imap/MCOIMAPSession.h @@ -79,9 +79,6 @@ /** When set to YES, VoIP capability will be enabled on the IMAP connection on iOS */ @property (nonatomic, assign, getter=isVoIPEnabled) BOOL voIPEnabled; -/** The default delimiter for the folder paths */ -//@property (nonatomic, assign) char delimiter; - /** The default namespace. */ @property (nonatomic, strong) MCOIMAPNamespace * defaultNamespace; diff --git a/src/objc/imap/MCOIMAPSession.mm b/src/objc/imap/MCOIMAPSession.mm index 4c1542f3..b3584f4d 100755 --- a/src/objc/imap/MCOIMAPSession.mm +++ b/src/objc/imap/MCOIMAPSession.mm @@ -86,7 +86,6 @@ MCO_OBJC_SYNTHESIZE_SCALAR(MCOConnectionType, mailcore::ConnectionType, setConne MCO_OBJC_SYNTHESIZE_SCALAR(NSTimeInterval, time_t, setTimeout, timeout) MCO_OBJC_SYNTHESIZE_BOOL(setCheckCertificateEnabled, isCheckCertificateEnabled) MCO_OBJC_SYNTHESIZE_BOOL(setVoIPEnabled, isVoIPEnabled) -//MCO_OBJC_SYNTHESIZE_SCALAR(char, char, setDelimiter, delimiter) MCO_OBJC_SYNTHESIZE_SCALAR(BOOL, BOOL, setAllowsFolderConcurrentAccessEnabled, allowsFolderConcurrentAccessEnabled) MCO_OBJC_SYNTHESIZE_SCALAR(unsigned int, unsigned int, setMaximumConnections, maximumConnections) |