summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-21 23:22:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-22 12:46:43 +0000
commit3679b7651737eba53c3779126246e4f0292570eb (patch)
treec5dd9e2ecc9d592414e05e5ea4564125b5da84c3 /unotools
parent2f0914e5f2957ebdb04bfc7fb5acb1bd6351a0f5 (diff)
callcatcher: remove various unused MultiAtomProvider methods
Diffstat (limited to 'unotools')
-rw-r--r--unotools/inc/unotools/atom.hxx8
-rw-r--r--unotools/source/misc/atom.cxx30
2 files changed, 0 insertions, 38 deletions
diff --git a/unotools/inc/unotools/atom.hxx b/unotools/inc/unotools/atom.hxx
index 6ad53ea7a439..40f707ca6746 100644
--- a/unotools/inc/unotools/atom.hxx
+++ b/unotools/inc/unotools/atom.hxx
@@ -57,12 +57,9 @@ namespace utl {
~AtomProvider();
int getAtom( const ::rtl::OUString&, sal_Bool bCreate = sal_False );
- int getLastAtom() const { return m_nAtoms-1; }
const ::rtl::OUString& getString( int ) const;
void overrideAtom( int atom, const ::rtl::OUString& description );
-
- sal_Bool hasAtom( int atom ) const;
};
@@ -73,10 +70,6 @@ namespace utl {
MultiAtomProvider();
~MultiAtomProvider();
- int getLastAtom( int atomClass ) const;
-
- sal_Bool insertAtomClass( int atomClass );
-
int getAtom( int atomClass, const ::rtl::OUString& rString, sal_Bool bCreate = sal_False );
const ::rtl::OUString& getString( int atomClass, int atom ) const;
@@ -84,7 +77,6 @@ namespace utl {
void overrideAtom( int atomClass, int atom, const ::rtl::OUString& description );
void overrideAtom( int atomClass, const ::com::sun::star::util::AtomDescription& newDescription )
{ overrideAtom( atomClass, newDescription.atom, newDescription.description ); }
- sal_Bool hasAtom( int atomClass, int atom ) const;
};
}
diff --git a/unotools/source/misc/atom.cxx b/unotools/source/misc/atom.cxx
index 61c0d52c1ff2..92b42af8cd33 100644
--- a/unotools/source/misc/atom.cxx
+++ b/unotools/source/misc/atom.cxx
@@ -74,11 +74,6 @@ void AtomProvider::overrideAtom( int atom, const ::rtl::OUString& description )
m_nAtoms=atom+1;
}
-sal_Bool AtomProvider::hasAtom( int atom ) const
-{
- return m_aStringMap.find( atom ) != m_aStringMap.end() ? sal_True : sal_False;
-}
-
// -----------------------------------------------------------------------
MultiAtomProvider::MultiAtomProvider()
@@ -91,17 +86,6 @@ MultiAtomProvider::~MultiAtomProvider()
delete it->second;
}
-
-sal_Bool MultiAtomProvider::insertAtomClass( int atomClass )
-{
- ::boost::unordered_map< int, AtomProvider*, ::boost::hash< int > >::iterator it =
- m_aAtomLists.find( atomClass );
- if( it != m_aAtomLists.end() )
- return sal_False;
- m_aAtomLists[ atomClass ] = new AtomProvider();
- return sal_True;
-}
-
int MultiAtomProvider::getAtom( int atomClass, const ::rtl::OUString& rString, sal_Bool bCreate )
{
::boost::unordered_map< int, AtomProvider*, ::boost::hash< int > >::iterator it =
@@ -118,14 +102,6 @@ int MultiAtomProvider::getAtom( int atomClass, const ::rtl::OUString& rString, s
return INVALID_ATOM;
}
-int MultiAtomProvider::getLastAtom( int atomClass ) const
-{
- ::boost::unordered_map< int, AtomProvider*, ::boost::hash< int > >::const_iterator it =
- m_aAtomLists.find( atomClass );
-
- return it != m_aAtomLists.end() ? it->second->getLastAtom() : INVALID_ATOM;
-}
-
const ::rtl::OUString& MultiAtomProvider::getString( int atomClass, int atom ) const
{
::boost::unordered_map< int, AtomProvider*, ::boost::hash< int > >::const_iterator it =
@@ -137,12 +113,6 @@ const ::rtl::OUString& MultiAtomProvider::getString( int atomClass, int atom ) c
return aEmpty;
}
-sal_Bool MultiAtomProvider::hasAtom( int atomClass, int atom ) const
-{
- ::boost::unordered_map< int, AtomProvider*, ::boost::hash< int > >::const_iterator it = m_aAtomLists.find( atomClass );
- return it != m_aAtomLists.end() ? it->second->hasAtom( atom ) : sal_False;
-}
-
void MultiAtomProvider::overrideAtom( int atomClass, int atom, const ::rtl::OUString& description )
{
::boost::unordered_map< int, AtomProvider*, ::boost::hash< int > >::const_iterator it = m_aAtomLists.find( atomClass );