summaryrefslogtreecommitdiff
path: root/plugins/FTPFileYM/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/FTPFileYM/src/utils.h')
-rw-r--r--plugins/FTPFileYM/src/utils.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/plugins/FTPFileYM/src/utils.h b/plugins/FTPFileYM/src/utils.h
index 3b22ccc7d6..ef3904e592 100644
--- a/plugins/FTPFileYM/src/utils.h
+++ b/plugins/FTPFileYM/src/utils.h
@@ -43,29 +43,3 @@ public:
static bool setFileNameDlg(TCHAR *nameBuff);
static bool setFileNameDlgA(char *nameBuff);
};
-
-class Mutex
-{
- friend class Lock;
-
-private:
- void Acquire() { EnterCriticalSection (&_critSection); }
- void Release() { LeaveCriticalSection (&_critSection); }
-
- CRITICAL_SECTION _critSection;
-
-public:
- Mutex() { InitializeCriticalSection (&_critSection); }
- ~Mutex() { DeleteCriticalSection (&_critSection); }
-};
-
-class Lock
-{
-private:
- Mutex &_mutex;
-
-public:
- Lock (Mutex &mutex): _mutex(mutex) { _mutex.Acquire(); }
- ~Lock () {_mutex.Release(); }
-};
-