summaryrefslogtreecommitdiff
path: root/ace/Hashable.cpp
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-06-18 18:53:27 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-06-18 18:53:27 +0000
commit152c0f5c127eac99b5c9097aa4db2b34e14e6dd0 (patch)
tree0d399a92623e98588cd34e4fe0c2cf7fed880173 /ace/Hashable.cpp
parent7e7f4a5d3e77a42e648b7dd2e1b9cf23a3780955 (diff)
downloadATCD-MyACE.tar.gz
This commit was manufactured by cvs2svn to create branch 'MyACE'.MyACE
Diffstat (limited to 'ace/Hashable.cpp')
-rw-r--r--ace/Hashable.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/ace/Hashable.cpp b/ace/Hashable.cpp
deleted file mode 100644
index fca05cf96c5..00000000000
--- a/ace/Hashable.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-//$Id$
-
-#include "ace/Hashable.h"
-
-#if !defined (__ACE_INLINE__)
-#include "ace/Hashable.inl"
-#endif /* __ACE_INLINE __ */
-
-
-ACE_RCSID (ace,
- Hashable,
- "$Id$")
-
-
-ACE_Hashable::~ACE_Hashable (void)
-{
-}
-
-unsigned long
-ACE_Hashable::hash (void) const
-{
- // In doing the check below, we take chance of paying a performance
- // price when the hash value is zero. But, that will (hopefully)
- // happen far less often than a non-zero value, so this caching
- // strategy should pay off, esp. if hash computation is expensive
- // relative to the simple comparison.
-
- if (this->hash_value_ == 0)
- (const_cast <ACE_Hashable *> (this))->hash_value_ = this->hash_i ();
-
- return this->hash_value_;
-}