OSDN Git Service

remove unused QMutexPool::instance()
authorIvailo Monev <xakepa10@gmail.com>
Sat, 13 Feb 2021 17:51:39 +0000 (19:51 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Sat, 13 Feb 2021 17:53:15 +0000 (19:53 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/thread/qmutexpool.cpp
src/core/thread/qmutexpool_p.h

index 7c09abb..f134300 100644 (file)
@@ -91,14 +91,6 @@ QMutexPool::~QMutexPool()
 }
 
 /*!
-    Returns the global QMutexPool instance.
-*/
-QMutexPool *QMutexPool::instance()
-{
-    return globalMutexPool();
-}
-
-/*!
     \fn QMutexPool::get(const void *address)
     Returns a QMutex from the pool. QMutexPool uses the value \a address
     to determine which mutex is returned from the pool.
index 389c062..7a837d5 100644 (file)
@@ -57,7 +57,7 @@ public:
             return m;
         return createMutex(index);
     }
-    static QMutexPool *instance();
+
     static QMutex *globalInstanceGet(const void *address);
 
 private: