From de70170ace52c0266bde7b5d6cb9b6958db53c43 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 13 Jan 2016 15:06:29 +0200 Subject: loplugin:unusedmethods unused return value in store,svl Change-Id: I369b3ae84af046242430977cec7d5c5e69fc27e7 --- store/source/storbase.hxx | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'store') diff --git a/store/source/storbase.hxx b/store/source/storbase.hxx index 05bc66e6581e..db98c3e6e1c9 100644 --- a/store/source/storbase.hxx +++ b/store/source/storbase.hxx @@ -261,19 +261,7 @@ struct OStorePageDescriptor (m_nSize == rhs.m_nSize) ); } - bool operator<= (const OStorePageDescriptor & rhs) const - { - return ((m_nAddr == rhs.m_nAddr ) && - (store::ntohs(m_nSize) <= store::ntohs(rhs.m_nSize)) ); - } - bool operator< (const OStorePageDescriptor & rhs) const - { - if (m_nAddr == rhs.m_nAddr) - return (store::ntohs(m_nSize) < store::ntohs(rhs.m_nSize)); - else - return (store::ntohl(m_nAddr) < store::ntohl(rhs.m_nAddr)); - } }; /*======================================================================== @@ -368,11 +356,6 @@ struct OStorePageLink return (m_nAddr == rhs.m_nAddr); } - bool operator< (const OStorePageLink& rhs) const - { - return (store::ntohl(m_nAddr) < store::ntohl(rhs.m_nAddr)); - } - /** Operation. */ sal_uInt32 location() const @@ -599,17 +582,6 @@ public: OSL_PRECOND(m_pagedata != nullptr, "store::PageHolder::operator->(): Null pointer"); return m_pagedata; } - - PageData & operator*() - { - OSL_PRECOND(m_pagedata != nullptr, "store::PageHolder::operator*(): Null pointer"); - return *m_pagedata; - } - PageData const & operator*() const - { - OSL_PRECOND(m_pagedata != nullptr, "store::PageHolder::operator*(): Null pointer"); - return *m_pagedata; - } }; /*======================================================================== -- cgit