]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2332] removed unused changed
authorJINMEI Tatuya <jinmei@isc.org>
Wed, 10 Oct 2012 23:45:41 +0000 (16:45 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Thu, 11 Oct 2012 06:01:58 +0000 (23:01 -0700)
src/lib/util/threads/Makefile.am
src/lib/util/threads/condvar.cc [deleted file]
src/lib/util/threads/condvar.h [deleted file]

index 9b3043ee4b5d634d20402e287f744fbfbb11e7d2..7b9fb8f859a6284d0d703a686eccccb93eeb2540 100644 (file)
@@ -7,7 +7,6 @@ AM_CPPFLAGS += $(BOOST_INCLUDES) $(MULTITHREADING_FLAG)
 lib_LTLIBRARIES = libb10-threads.la
 libb10_threads_la_SOURCES  = lock.h lock.cc
 libb10_threads_la_SOURCES += thread.h thread.cc
-libb10_threads_la_SOURCES  += condvar.h condvar.cc
 libb10_threads_la_LIBADD = $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
 
 CLEANFILES = *.gcno *.gcda
diff --git a/src/lib/util/threads/condvar.cc b/src/lib/util/threads/condvar.cc
deleted file mode 100644 (file)
index 6bdf385..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (C) 2012  Internet Systems Consortium, Inc. ("ISC")
-//
-// Permission to use, copy, modify, and/or distribute this software for any
-// purpose with or without fee is hereby granted, provided that the above
-// copyright notice and this permission notice appear in all copies.
-//
-// THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-// AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-// PERFORMANCE OF THIS SOFTWARE.
-
-#include "condvar.h"
-
-#include <exceptions/exceptions.h>
-
-#include <cassert>
-#include <pthread.h>
-
-namespace isc {
-namespace util {
-namespace thread {
-
-class CondVar::Impl {
-public:
-    Impl() {
-        const int result = pthread_cond_init(&cond, NULL);
-        if (result != 0) {
-            isc_throw(isc::Unexpected, "pthread_cond_init failed: "
-                      << std::strerror(result));
-        }
-    }
-    ~Impl() {
-        const int result = pthread_cond_destroy(&cond);
-        assert(result == 0);
-    }
-
-private:
-    pthread_cond_t cond;
-};
-
-CondVar::CondVar() : impl_(new Impl)
-{}
-
-CondVar::~CondVar() {
-    delete impl_;
-}
-
-} // namespace thread
-} // namespace util
-} // namespace isc
diff --git a/src/lib/util/threads/condvar.h b/src/lib/util/threads/condvar.h
deleted file mode 100644 (file)
index 2caf0ab..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (C) 2012  Internet Systems Consortium, Inc. ("ISC")
-//
-// Permission to use, copy, modify, and/or distribute this software for any
-// purpose with or without fee is hereby granted, provided that the above
-// copyright notice and this permission notice appear in all copies.
-//
-// THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-// AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-// PERFORMANCE OF THIS SOFTWARE.
-
-#ifndef UTIL_THREADS_CONDVAR_H
-#define UTIL_THREADS_CONDVAR_H 1
-
-#include "lock.h"
-
-#include <exceptions/exceptions.h>
-
-#include <boost/noncopyable.hpp>
-
-namespace isc {
-namespace util {
-namespace thread {
-
-// This class object internally holds pthread_cond_t and pthread_mutex_t
-class CondVar : boost::noncopyable {
-public:
-    CondVar();
-    ~CondVar();
-private:
-    class Impl;
-    Impl* impl_;
-};
-
-} // namespace thread
-} // namespace util
-} // namespace isc
-
-#endif UTIL_THREADS_CONDVAR_H
-
-// Local Variables:
-// mode: c++
-// End: