diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-02 09:18:06 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-02 08:58:18 +0000 |
commit | 081ae7a734381dffe0aece7ea8d3c412f602df38 (patch) | |
tree | 6589d2788e0fbad89c822d0d90dba42899d40c4a /store | |
parent | 2e7fe5087487cab0bb0173c84f91e1cf843d963e (diff) |
loplugin:unusedmethods registry,store
Change-Id: Ie78eb881a7fc47d0cd7b9862bd0cd200153ce77d
Reviewed-on: https://gerrit.libreoffice.org/16679
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'store')
-rw-r--r-- | store/source/storbase.hxx | 34 | ||||
-rw-r--r-- | store/source/stordata.hxx | 35 | ||||
-rw-r--r-- | store/source/stortree.hxx | 7 |
3 files changed, 0 insertions, 76 deletions
diff --git a/store/source/storbase.hxx b/store/source/storbase.hxx index 2eed63736500..395870f9fcf9 100644 --- a/store/source/storbase.hxx +++ b/store/source/storbase.hxx @@ -295,12 +295,6 @@ struct OStorePageKey m_nHigh (store::htonl(nHigh)) {} - void swap (OStorePageKey & rhs) - { - store::swap(m_nLow, rhs.m_nLow); - store::swap(m_nHigh, rhs.m_nHigh); - } - OStorePageKey (const OStorePageKey & rhs) : m_nLow (rhs.m_nLow), m_nHigh (rhs.m_nHigh) {} @@ -386,19 +380,6 @@ struct OStorePageLink return store::ntohl(m_nAddr); } - void link (OStorePageLink & rPred) - { - // @@@ swap (rPred); @@@ - OStorePageLink tmp (rPred); - rPred = *this; - *this = tmp; - } - - void unlink (OStorePageLink& rPred) - { - rPred = *this; - *this = OStorePageLink(); - } }; /*======================================================================== @@ -551,13 +532,6 @@ struct PageData return store_E_None; } - storeError verifyVersion (sal_uInt32 nMagic) const - { - if (m_aGuard.m_nMagic != store::htonl(nMagic)) - return store_E_WrongVersion; - else - return store_E_None; - } }; /*======================================================================== @@ -803,7 +777,6 @@ public: /** Location. */ inline sal_uInt32 location() const; - inline void location (sal_uInt32 nAddr); protected: /** Representation. @@ -843,7 +816,6 @@ public: } PageHolder & get() { return m_xPage; } - PageHolder const & get() const { return m_xPage; } virtual storeError guard (sal_uInt32 nAddr) = 0; virtual storeError verify (sal_uInt32 nAddr) const = 0; @@ -869,12 +841,6 @@ inline sal_uInt32 OStorePageObject::location() const return m_xPage->location(); } -inline void OStorePageObject::location (sal_uInt32 nAddr) -{ - m_xPage->location(nAddr); - touch(); -} - /*======================================================================== * * The End. diff --git a/store/source/stordata.hxx b/store/source/stordata.hxx index 82b7d68b5029..2ef8d8d763e2 100644 --- a/store/source/stordata.hxx +++ b/store/source/stordata.hxx @@ -70,13 +70,6 @@ struct OStoreDataPageData : public store::OStorePageData return self::capacity (base::m_aDescr); } - /** usage. - */ - sal_uInt16 usage() const - { - return (store::ntohs(base::m_aDescr.m_nUsed) - self::thePageSize); - } - /** Construction. */ explicit OStoreDataPageData (sal_uInt16 nPageSize = self::thePageSize) @@ -576,26 +569,6 @@ struct OStoreDirectoryPageData : public store::OStorePageData return (store::ntohs(base::m_aDescr.m_nSize) - self::thePageSize); } - /** usage. - */ - sal_uInt16 usage() const - { - return (store::ntohs(base::m_aDescr.m_nUsed) - self::thePageSize); - } - - /** initialize. - */ - void initialize() - { - base::m_aGuard.m_nMagic = store::htonl(self::theTypeId); - base::m_aDescr.m_nUsed = store::htons(self::thePageSize); - - m_aNameBlock.initialize(); - m_aDataBlock.initialize(); - - memset (m_pData, 0, capacity()); - } - /** Construction. */ explicit OStoreDirectoryPageData (sal_uInt16 nPageSize) @@ -729,14 +702,6 @@ public: return rtl_crc32 (nPath, pszName, rtl_str_getLength(pszName)); } - sal_Size getName (sal_Char * pBuffer, sal_Size nBufsize) const - { - sal_Char const * pszName = PAGE().m_aNameBlock.m_pData; - sal_Size nLength = rtl_str_getLength(pszName); - memcpy (pBuffer, pszName, nLength < nBufsize ? nLength : nBufsize); - return nLength; - } - /** dataLength. */ sal_uInt32 dataLength() const diff --git a/store/source/stortree.hxx b/store/source/stortree.hxx index 2cfe8f2ee683..c3c5b6f8f2db 100644 --- a/store/source/stortree.hxx +++ b/store/source/stortree.hxx @@ -195,13 +195,6 @@ struct OStoreBTreeNodeData : public store::OStorePageData self::m_aGuard.m_nMagic = store::htonl(nDepth); } - /** queryMerge. - */ - bool queryMerge (const self &rPageR) const - { - return ((usageCount() + rPageR.usageCount()) <= capacityCount()); - } - /** querySplit. */ bool querySplit() const |