summaryrefslogtreecommitdiff
path: root/sc/source/core/data/dpitemdata.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-03-09 12:35:33 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-03-09 12:35:33 -0500
commit5e9d811ab8a1c0481c67e3d4589e0a16fb781120 (patch)
tree8ec0eed4e22eefe0c25eaa51f08ba5b283340c83 /sc/source/core/data/dpitemdata.cxx
parent59e4ac4c3e55562856cdab04435489f9dc67d318 (diff)
Apparently nobody uses Hash() anymore.
Diffstat (limited to 'sc/source/core/data/dpitemdata.cxx')
-rw-r--r--sc/source/core/data/dpitemdata.cxx14
1 files changed, 0 insertions, 14 deletions
diff --git a/sc/source/core/data/dpitemdata.cxx b/sc/source/core/data/dpitemdata.cxx
index 8f16a335908a..f0ac5d58e09f 100644
--- a/sc/source/core/data/dpitemdata.cxx
+++ b/sc/source/core/data/dpitemdata.cxx
@@ -192,20 +192,6 @@ bool ScDPItemData::IsCaseInsEqual(const ScDPItemData& r) const
return ScGlobal::GetpTransliteration()->isEqual(GetString(), r.GetString());
}
-size_t ScDPItemData::Hash() const
-{
- if (meType == Value)
- return static_cast<size_t>(rtl::math::approxFloor(mfValue));
-
- // If we do unicode safe case insensitive hash we can drop
- // ScDPItemData::operator== and use ::IsCasInsEqual
- rtl::OUString aStr = GetString();
- if (aStr.isEmpty())
- return 0;
-
- return rtl_ustr_hashCode_WithLength(aStr.getStr(), aStr.getLength());
-}
-
bool ScDPItemData::operator== (const ScDPItemData& r) const
{
if (meType != r.meType)