Removed unused reverse_lock.hpp header.
authorOssama Othman <ossama.othman@intel.com>
Sun, 13 Oct 2013 04:33:05 +0000 (21:33 -0700)
committerOssama Othman <ossama.othman@intel.com>
Sun, 13 Oct 2013 04:33:05 +0000 (21:33 -0700)
Change-Id: I7d4bc1e77faf29d8229b898413bf777223de9508
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
include/settingsd/Makefile.am
include/settingsd/reverse_lock.hpp [deleted file]

index 0eb9d72..8b5f5e4 100644 (file)
@@ -28,5 +28,4 @@ pkginclude_HEADERS =          \
        glib_traits.hpp         \
        json_glib_traits.hpp    \
        smart_ptr.hpp           \
-       reverse_lock.hpp        \
        dbus_signal_callback.hpp
diff --git a/include/settingsd/reverse_lock.hpp b/include/settingsd/reverse_lock.hpp
deleted file mode 100644 (file)
index 7de5310..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-/**
- * @file reverse_lock.hpp
- *
- * @brief C++11 style smart pointer for use by settings plug-ins.
- *
- * @author Ossama Othman @<ossama.othman@@intel.com@>
- *
- * @copyright @par
- * Copyright 2013 Intel Corporation All Rights Reserved.
- * @par
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation;
- * version 2.1 of the License.
- * @par
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- * @par
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA  02110-1301  USA
- */
-
-#ifndef IVI_SETTINGS_REVERSE_LOCK_HPP
-#define IVI_SETTINGS_REVERSE_LOCK_HPP
-
-
-namespace ivi
-{
-  namespace settings
-  {
-    /**
-     * @typename reverse_lock
-     *
-     * @brief Mutex implementation that reverse the lock/unlock
-     *        operations.
-     */
-    template<typename T>
-    class reverse_lock
-    {
-    public:
-
-      constexpr reverse_lock(T & m) : mutex_(m) {}
-
-      /// Unlock the underlying mutex.
-      void lock() { mutex_.unlock(); }
-
-      /// Lock the underlying mutex.
-      void unlock()  { mutex_.lock(); }
-
-    private:
-
-      /**
-       * @name Prevent copying
-       */
-      //@{
-      reverse_lock(reverse_lock const &) = delete;
-      reverse_lock & operator=(reverse_lock const &) = delete;
-      //@}
-
-    private:
-
-      /// The underlying mutex.
-      T & mutex_;
-
-    };
-
-  }
-}
-
-
-#endif /* IVI_SETTINGS_REVERSE_LOCK_HPP */
-
-
-// Local Variables:
-// mode:c++
-// c-basic-offset:2
-// indent-tabs-mode: nil
-// End: