ref: refs/heads/ma-misc
commit 2252670861073d11a623d7f60caab22f8c5c2221
Author: Michael Andres
Date: Thu Sep 10 11:43:42 2009 +0200
Remove unneeded DefaultFalseBool.
---
zypp/CMakeLists.txt | 1 -
zypp/base/DefaultFalseBool.h | 56 ------------------------------------------
zypp/target/TargetImpl.h | 1 -
3 files changed, 0 insertions(+), 58 deletions(-)
diff --git a/zypp/CMakeLists.txt b/zypp/CMakeLists.txt
index 3b6a2c3..275ce1e 100644
--- a/zypp/CMakeLists.txt
+++ b/zypp/CMakeLists.txt
@@ -209,7 +209,6 @@ SET( zypp_base_HEADERS
base/Algorithm.h
base/Counter.h
base/Debug.h
- base/DefaultFalseBool.h
base/DefaultIntegral.h
base/Deprecated.h
base/DtorReset.h
diff --git a/zypp/base/DefaultFalseBool.h b/zypp/base/DefaultFalseBool.h
deleted file mode 100644
index 9fa1cc2..0000000
--- a/zypp/base/DefaultFalseBool.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/*---------------------------------------------------------------------\
-| ____ _ __ __ ___ |
-| |__ / \ / / . \ . \ |
-| / / \ V /| _/ _/ |
-| / /__ | | | | | | |
-| /_____||_| |_| |_| |
-| |
-\---------------------------------------------------------------------*/
-/** \file zypp/base/DefaultFalseBool.h
- *
-*/
-#ifndef ZYPP_BASE_DefaultFalseBool_H
-#define ZYPP_BASE_DefaultFalseBool_H
-
-///////////////////////////////////////////////////////////////////
-namespace zypp
-{ /////////////////////////////////////////////////////////////////
-
- ///////////////////////////////////////////////////////////////////
- //
- // CLASS NAME : DefaultFalseBool<_Tp>
- //
- /** Bool whose default value is false
- *
- * Useful for map where if the entry is not present
- * you get a undefined bool
- *
- */
- class DefaultFalseBool
- {
- public:
- /** DefaultCtor */
- DefaultFalseBool() : _b(false)
- {}
-
- /** Dtor */
- ~DefaultFalseBool()
- {}
-
- operator bool() const
- { return _b; }
-
- bool operator =(bool a)
- {
- _b = a;
- return a;
- }
-
- private:
- bool _b;
- };
-
- /////////////////////////////////////////////////////////////////
-} // namespace zypp
-///////////////////////////////////////////////////////////////////
-#endif // ZYPP_BASE_DefaultFalseBool_H
diff --git a/zypp/target/TargetImpl.h b/zypp/target/TargetImpl.h
index f619cb9..1ffe62c 100644
--- a/zypp/target/TargetImpl.h
+++ b/zypp/target/TargetImpl.h
@@ -18,7 +18,6 @@
#include "zypp/base/ReferenceCounted.h"
#include "zypp/base/NonCopyable.h"
-#include "zypp/base/DefaultFalseBool.h"
#include "zypp/base/PtrTypes.h"
#include "zypp/PoolItem.h"
#include "zypp/ZYppCommit.h"
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org