From 1d02975e4cc0dfb1f2c0c0ae08674d3e6b5189a8 Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Wed, 24 Oct 2018 22:29:59 +0100 Subject: [PATCH] Removed dead code. --- src/blackmisc/lockfree.cpp | 23 ----------------------- src/blackmisc/lockfree.h | 8 -------- 2 files changed, 31 deletions(-) delete mode 100644 src/blackmisc/lockfree.cpp diff --git a/src/blackmisc/lockfree.cpp b/src/blackmisc/lockfree.cpp deleted file mode 100644 index d7443da77..000000000 --- a/src/blackmisc/lockfree.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/* Copyright (C) 2015 -* swift project Community / Contributors -* -* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level -* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project, -* including this file, may be copied, modified, propagated, or distributed except according to the terms -* contained in the LICENSE file. -*/ - -#include "lockfree.h" - -namespace BlackMisc -{ - namespace Private - { - // this is only needed for GCC <= 4.9, but we define it for all compilers to avoid warning about empty cpp file - QMutex *atomicSharedPtrMutex() - { - static QMutex mutex(QMutex::Recursive); - return &mutex; - } - } -}; diff --git a/src/blackmisc/lockfree.h b/src/blackmisc/lockfree.h index 0bd91ee5c..05c2221a5 100644 --- a/src/blackmisc/lockfree.h +++ b/src/blackmisc/lockfree.h @@ -38,14 +38,6 @@ namespace BlackMisc template class LockFree; - namespace Private - { - //! \cond PRIVATE - //! \private - BLACKMISC_EXPORT QMutex *atomicSharedPtrMutex(); - //! \endcond - } - /*! * Return value of LockFree::read(). Allows any one thread to safely read from the lock-free object. */