diff options
Diffstat (limited to 'connectivity/source/inc/dbase')
-rw-r--r-- | connectivity/source/inc/dbase/DIndex.hxx | 3 | ||||
-rw-r--r-- | connectivity/source/inc/dbase/DIndexIter.hxx | 5 | ||||
-rw-r--r-- | connectivity/source/inc/dbase/dindexnode.hxx | 35 |
3 files changed, 1 insertions, 42 deletions
diff --git a/connectivity/source/inc/dbase/DIndex.hxx b/connectivity/source/inc/dbase/DIndex.hxx index ed424641373c..b40aaa1d4fff 100644 --- a/connectivity/source/inc/dbase/DIndex.hxx +++ b/connectivity/source/inc/dbase/DIndex.hxx @@ -111,10 +111,8 @@ namespace connectivity void SetRootPos(sal_uInt32 nPos) {m_nRootPage = nPos;} void SetPageCount(sal_uInt32 nCount) {m_nPageCount = nCount;} - sal_uInt32 GetRootPos() {return m_nRootPage;} sal_uInt32 GetPageCount() {return m_nPageCount;} - bool IsText() const {return m_aHeader.db_keytype == 0;} sal_uInt16 GetMaxNodes() const {return m_aHeader.db_maxkeys;} bool Insert(sal_uInt32 nRec, const ORowSetValue& rValue); @@ -136,7 +134,6 @@ namespace connectivity bool isUnique() const { return m_IsUnique; } bool UseCollector() const {return m_bUseCollector;} // Tree operations - void Insert(ONDXPagePtr aCurPage, ONDXNode& rNode); void Release(bool bSave = true); bool ConvertToKey(ONDXKey* rKey, sal_uInt32 nRec, const ORowSetValue& rValue); }; diff --git a/connectivity/source/inc/dbase/DIndexIter.hxx b/connectivity/source/inc/dbase/DIndexIter.hxx index 772bfb93de99..7d3dd2fb5b56 100644 --- a/connectivity/source/inc/dbase/DIndexIter.hxx +++ b/connectivity/source/inc/dbase/DIndexIter.hxx @@ -39,9 +39,8 @@ namespace connectivity ODbaseIndex* m_pIndex; ONDXPagePtr m_aRoot, m_aCurLeaf; - sal_uInt16 m_nCurNode; + sal_uInt16 m_nCurNode; - protected: sal_uIntPtr Find(bool bFirst); sal_uIntPtr GetCompare(bool bFirst); sal_uIntPtr GetLike(bool bFirst); @@ -51,8 +50,6 @@ namespace connectivity ONDXKey* GetFirstKey(ONDXPage* pPage, const file::OOperand& rKey); ONDXKey* GetNextKey(); - ODbaseIndex* GetIndex() const {return m_pIndex;} - public: OIndexIterator(ODbaseIndex* pInd, diff --git a/connectivity/source/inc/dbase/dindexnode.hxx b/connectivity/source/inc/dbase/dindexnode.hxx index b32163511e6a..17cb9b769f43 100644 --- a/connectivity/source/inc/dbase/dindexnode.hxx +++ b/connectivity/source/inc/dbase/dindexnode.hxx @@ -70,9 +70,6 @@ namespace connectivity bool operator > (const ONDXKey& rKey) const; bool operator >= (const ONDXKey& rKey) const; - bool Load (SvFileStream& rStream, bool bText); - bool Write(SvFileStream& rStream, bool bText); - static bool IsText(sal_Int32 eType); private: @@ -157,7 +154,6 @@ namespace connectivity bool IsLeaf() const; bool IsModified() const; bool HasParent(); - bool HasChild() const; bool IsFull() const; @@ -224,7 +220,6 @@ namespace connectivity inline bool ONDXPage::IsLeaf() const {return !aChild.HasPage();} inline bool ONDXPage::IsModified() const {return bModified;} inline bool ONDXPage::HasParent() {return aParent.Is();} - inline bool ONDXPage::HasChild() const {return aChild.HasPage();} inline ONDXPagePtr ONDXPage::GetParent() {return aParent;} inline void ONDXPage::SetParent(ONDXPagePtr aPa = ONDXPagePtr()) @@ -269,41 +264,11 @@ namespace connectivity // Setting the child, via reference to retain the PagePos void SetChild(ONDXPagePtr aCh = ONDXPagePtr(), ONDXPage* = NULL); - void SetKey(ONDXKey& rKey) {aKey = rKey;} void Write(SvStream &rStream, const ONDXPage& rPage) const; void Read(SvStream &rStream, ODbaseIndex&); }; - // inline implementation - -// inline ONDXKey::ONDXKey(const ORowSetValue& rVal, sal_Int32 eType, sal_uInt32 nRec) -// : ONDXKey_BASE(eType) -// , nRecord(nRec),xValue(rVal) -// { -// } - - -// inline ONDXKey::ONDXKey(const OUString& aStr, sal_uInt32 nRec) -// : ONDXKey_BASE(::com::sun::star::sdbc::DataType::VARCHAR) -// ,nRecord(nRec) -// { -// if (aStr.len()) -// xValue = aStr; -// } - -// inline ONDXKey::ONDXKey(double aVal, sal_uInt32 nRec) -// : ONDXKey_BASE(::com::sun::star::sdbc::DataType::DOUBLE) -// ,nRecord(nRec) -// ,xValue(aVal) -// { -// } - -// inline ONDXKey::ONDXKey(sal_uInt32 nRec) -// :nRecord(nRec) -// { -// } - inline ONDXKey::ONDXKey(const ONDXKey& rKey) : ONDXKey_BASE(rKey.getDBType()) ,nRecord(rKey.nRecord) |