diff options
Diffstat (limited to 'ace/Hashable.cpp')
-rw-r--r-- | ace/Hashable.cpp | 32 |
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_; -} |