summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-27 22:33:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-28 09:20:32 +0100
commit84841b118ad93d5ef0cbbf293067a020c3382ff5 (patch)
tree062a74fcfde62656b0003a0d06b9b9a38e105092 /unotools
parent19bf1de0d4d1800b51485b4d33dc27a78854d521 (diff)
callcatcher: AtomServer unused
Diffstat (limited to 'unotools')
-rw-r--r--unotools/inc/unotools/atom.hxx19
-rw-r--r--unotools/source/misc/atom.cxx82
2 files changed, 0 insertions, 101 deletions
diff --git a/unotools/inc/unotools/atom.hxx b/unotools/inc/unotools/atom.hxx
index 714355fea147..a144955a6e31 100644
--- a/unotools/inc/unotools/atom.hxx
+++ b/unotools/inc/unotools/atom.hxx
@@ -93,25 +93,6 @@ namespace utl {
{ overrideAtom( atomClass, newDescription.atom, newDescription.description ); }
sal_Bool hasAtom( int atomClass, int atom ) const;
};
-
- class AtomServer : public ::cppu::WeakAggImplHelper1< ::com::sun::star::util::XAtomServer >
- {
- private:
- MultiAtomProvider m_aProvider;
- ::osl::Mutex m_aMutex;
- public:
- AtomServer();
- virtual ~AtomServer();
-
- const ::rtl::OUString& getString( int atomClass, int atom ) const
- { return m_aProvider.getString( atomClass, atom ); }
-
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::util::AtomDescription > SAL_CALL getClass( sal_Int32 atomClass ) throw();
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::util::AtomDescription > > SAL_CALL getClasses( const ::com::sun::star::uno::Sequence< sal_Int32 >& atomClasses ) throw();
- virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getAtomDescriptions( const ::com::sun::star::uno::Sequence< ::com::sun::star::util::AtomClassRequest >& atoms ) throw();
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::util::AtomDescription > SAL_CALL getRecentAtoms( sal_Int32 atomClass, sal_Int32 atom ) throw();
- virtual sal_Int32 SAL_CALL getAtom( sal_Int32 atomClass, const ::rtl::OUString& description, sal_Bool create ) throw();
- };
}
#endif
diff --git a/unotools/source/misc/atom.cxx b/unotools/source/misc/atom.cxx
index b54c7da965c4..df422ba4b8ff 100644
--- a/unotools/source/misc/atom.cxx
+++ b/unotools/source/misc/atom.cxx
@@ -205,86 +205,4 @@ void MultiAtomProvider::overrideAtom( int atomClass, int atom, const ::rtl::OUSt
m_aAtomLists[ atomClass ]->overrideAtom( atom, description );
}
-// -----------------------------------------------------------------------
-
-AtomServer::AtomServer()
-{
-}
-
-AtomServer::~AtomServer()
-{
-}
-
-sal_Int32 AtomServer::getAtom( sal_Int32 atomClass, const ::rtl::OUString& description, sal_Bool create ) throw()
-{
- ::osl::Guard< ::osl::Mutex > guard( m_aMutex );
-
- return m_aProvider.getAtom( atomClass, description, create );
-}
-
-Sequence< Sequence< NMSP_UTIL::AtomDescription > > AtomServer::getClasses( const Sequence< sal_Int32 >& atomClasses ) throw()
-{
- ::osl::Guard< ::osl::Mutex > guard( m_aMutex );
-
- Sequence< Sequence< NMSP_UTIL::AtomDescription > > aRet( atomClasses.getLength() );
- for( int i = 0; i < atomClasses.getLength(); i++ )
- {
- aRet.getArray()[i] = getClass( atomClasses.getConstArray()[i] );
- }
- return aRet;
-}
-
-Sequence< NMSP_UTIL::AtomDescription > AtomServer::getClass( sal_Int32 atomClass ) throw()
-{
- ::osl::Guard< ::osl::Mutex > guard( m_aMutex );
-
- ::std::list< ::utl::AtomDescription > atoms;
- m_aProvider.getClass( atomClass, atoms );
-
- Sequence< NMSP_UTIL::AtomDescription > aRet( atoms.size() );
- for( int i = aRet.getLength()-1; i >= 0; i-- )
- {
- aRet.getArray()[i].atom = atoms.back().atom;
- aRet.getArray()[i].description = atoms.back().description;
- atoms.pop_back();
- }
-
- return aRet;
-}
-
-Sequence< NMSP_UTIL::AtomDescription > AtomServer::getRecentAtoms( sal_Int32 atomClass, sal_Int32 atom ) throw()
-{
- ::osl::Guard< ::osl::Mutex > guard( m_aMutex );
-
- ::std::list< ::utl::AtomDescription > atoms;
- m_aProvider.getRecent( atomClass, atom, atoms );
-
- Sequence< NMSP_UTIL::AtomDescription > aRet( atoms.size() );
- for( int i = aRet.getLength()-1; i >= 0; i-- )
- {
- aRet.getArray()[i].atom = atoms.back().atom;
- aRet.getArray()[i].description = atoms.back().description;
- atoms.pop_back();
- }
-
- return aRet;
-}
-
-Sequence< ::rtl::OUString > AtomServer::getAtomDescriptions( const Sequence< AtomClassRequest >& atoms ) throw()
-{
- ::osl::Guard< ::osl::Mutex > guard( m_aMutex );
-
- int nStrings = 0, i;
- for( i = 0; i < atoms.getLength(); i++ )
- nStrings += atoms.getConstArray()[ i ].atoms.getLength();
- Sequence< ::rtl::OUString > aRet( nStrings );
- for( i = 0, nStrings = 0; i < atoms.getLength(); i++ )
- {
- const AtomClassRequest& rRequest = atoms.getConstArray()[i];
- for( int n = 0; n < rRequest.atoms.getLength(); n++ )
- aRet.getArray()[ nStrings++ ] = m_aProvider.getString( rRequest.atomClass, rRequest.atoms.getConstArray()[ n ] );
- }
- return aRet;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */