summaryrefslogtreecommitdiff
path: root/store/source/storpage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'store/source/storpage.cxx')
-rw-r--r--store/source/storpage.cxx68
1 files changed, 3 insertions, 65 deletions
diff --git a/store/source/storpage.cxx b/store/source/storpage.cxx
index a49e850061b6..b91528a615df 100644
--- a/store/source/storpage.cxx
+++ b/store/source/storpage.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -163,71 +164,6 @@ storeError OStorePageManager::find_lookup (
* remove_Impl (possibly down from root).
* Internal: Precond: initialized, writeable, exclusive access.
*/
-#if 0 /* EXP */
-storeError OStorePageManager::remove_Impl (entry & rEntry)
-{
- // Find Node and Index.
- OStoreBTreeNodeObject aNode;
- sal_uInt16 nIndex = 0;
- eErrCode = m_aRoot.find_lookup (aNode, nIndex, entry::CompareGreater(rEntry), *this);
-
- // @@@
-
- PageHolderObject< page > xPage (aNode.get());
- page & rPage = (*xPage);
-
- // Check current page index.
- sal_uInt16 i = rPage.find (rEntry), n = rPage.usageCount();
- if (!(i < n))
- {
- // Path to entry not exists (Must not happen(?)).
- return store_E_NotExists;
- }
-
- // Compare entry.
- entry::CompareResult result = rEntry.compare (rPage.m_pData[i]);
-
- for (; result == entry::COMPARE_GREATER && xPage->depth() > 0; )
- {
- // Check next node address.
- sal_uInt32 const nAddr = rPage.m_pData[i].m_aLink.location();
- if (nAddr == STORE_PAGE_NULL)
- {
- // Path to entry not exists (Must not happen(?)).
- return store_E_NotExists;
- }
-
- // Load next node page.
- eErrCode = loadObjectAt (aNode, nAddr);
-
- PageHolderObject< page > xNext (aNode.get());
- xNext.swap (xPage);
- }
-
- aNode.remove (nIndex, rEntry, *this);
-
-
- do
- {
- // Load next node page.
- eErrCode = loadObjectAt (aNode, nAddr);
-
- page const & rPage = (*xPage);
-
- // Check current page index.
- sal_uInt16 i = rPage.find (rEntry), n = rPage.usageCount();
- if (!(i < n))
- {
- // Path to entry not exists (Must not happen(?)).
- return store_E_NotExists;
- }
-
- // Compare entry.
- result = rEntry.compare (rPage.m_pData[i]);
-
- } while (result == entry::COMPATE_GREATER);
-}
-#endif /* EXP */
storeError OStorePageManager::remove_Impl (entry & rEntry)
{
@@ -1055,3 +991,5 @@ storeError OStorePageManager::rebuild (
// Done.
return store_E_None;
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */