This patch removes unused code as listed in unusedcode.easy
From 9db43697d0b1946ce9817914b78f98d94b9b6ae1 Mon Sep 17 00:00:00 2001
From: Santiago Martinez <smvar...@gmail.com>
Date: Sun, 19 Feb 2012 19:01:09 +0100
Subject: [PATCH] Remove unused code in XMLTextListAutoStylePool.

---
 unusedcode.easy                                 |    1 -
 xmloff/inc/xmloff/XMLTextListAutoStylePool.hxx  |    1 -
 xmloff/source/text/XMLTextListAutoStylePool.cxx |    5 -----
 3 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/unusedcode.easy b/unusedcode.easy
index afeba1d..c841c18 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -540,7 +540,6 @@ XMLPropertyBackpatcher<short>::XMLPropertyBackpatcher(char const*)
 XMLPropertyBackpatcher<short>::XMLPropertyBackpatcher(char const*, char const*, unsigned char, short)
 XMLPropertyBackpatcher<short>::XMLPropertyBackpatcher(rtl::OUString const&, rtl::OUString const&, unsigned char, short)
 XMLTextFieldExport::ProcessDate(xmloff::token::XMLTokenEnum, com::sun::star::util::Date const&, unsigned short)
-XMLTextListAutoStylePool::HasName(rtl::OUString const&) const
 XMLTextListAutoStylePoolNames_Impl::GetPos(rtl::OUString const*) const
 XMLTextListAutoStylePoolNames_Impl::Remove(rtl::OUString*)
 XMLTextListAutoStylePool_Impl::GetPos(XMLTextListAutoStylePoolEntry_Impl const*) const
diff --git a/xmloff/inc/xmloff/XMLTextListAutoStylePool.hxx b/xmloff/inc/xmloff/XMLTextListAutoStylePool.hxx
index b1dbb67..8c39819 100644
--- a/xmloff/inc/xmloff/XMLTextListAutoStylePool.hxx
+++ b/xmloff/inc/xmloff/XMLTextListAutoStylePool.hxx
@@ -67,7 +67,6 @@ public:
     ~XMLTextListAutoStylePool();
 
     void RegisterName( const ::rtl::OUString& rName );
-    sal_Bool HasName( const ::rtl::OUString& rName ) const;
 
     ::rtl::OUString Add(
             const ::com::sun::star::uno::Reference <
diff --git a/xmloff/source/text/XMLTextListAutoStylePool.cxx b/xmloff/source/text/XMLTextListAutoStylePool.cxx
index f7bc70f..8becfb7 100644
--- a/xmloff/source/text/XMLTextListAutoStylePool.cxx
+++ b/xmloff/source/text/XMLTextListAutoStylePool.cxx
@@ -203,11 +203,6 @@ void XMLTextListAutoStylePool::RegisterName( const OUString& rName )
         delete pName;
 }
 
-sal_Bool XMLTextListAutoStylePool::HasName( const OUString& rName ) const
-{
-    return pNames->Seek_Entry( &rName, 0 );
-}
-
 sal_uInt32 XMLTextListAutoStylePool::Find( XMLTextListAutoStylePoolEntry_Impl* pEntry ) const
 {
     sal_uLong nPos;
-- 
1.7.7.6

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to