diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-12 20:57:00 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-13 10:25:31 +0100 |
commit | dd69ff6ea20bf43b08b8de951c750853a62d3335 (patch) | |
tree | af81117205f41e278022899eb493e497e42d0405 /svl | |
parent | 188fee6957bf700c923e29d19fa79fa828b28045 (diff) |
callcatcher: downheap only used by removed heapsort, also remove it
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/misc/inethist.cxx | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/svl/source/misc/inethist.cxx b/svl/source/misc/inethist.cxx index a0f6b8772a66..c52c03cf6cef 100644 --- a/svl/source/misc/inethist.cxx +++ b/svl/source/misc/inethist.cxx @@ -156,8 +156,6 @@ class INetURLHistory_Impl */ void initialize (void); - void downheap (hash_entry a[], sal_uInt16 n, sal_uInt16 k); - /** capacity. */ sal_uInt16 capacity (void) const @@ -257,23 +255,6 @@ void INetURLHistory_Impl::initialize (void) } /* - * downheap. - */ -void INetURLHistory_Impl::downheap (hash_entry a[], sal_uInt16 n, sal_uInt16 k) -{ - hash_entry h = a[k]; - while (k < n / 2) - { - sal_uInt16 i = k + k + 1; - if (((i + 1) < n) && (a[i] < a[i + 1])) i++; - if (!(h < a[i])) break; - a[k] = a[i]; - k = i; - } - a[k] = h; -} - -/* * find. */ sal_uInt16 INetURLHistory_Impl::find (sal_uInt32 nHash) const |