summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-03-06 00:52:50 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-03-06 11:26:34 +0000
commitc1e467f7999592f1144ce0c1c6563fa21f54cbbd (patch)
tree44e57f406695f87ff9c1b5d0c96b493169f5df5b
parent09aaa188bc9c84508f0b043eaee5eddd0ae4e3cc (diff)
remove TransliterationWrapper::compareSubstring
-rw-r--r--unotools/inc/unotools/transliterationwrapper.hxx4
-rw-r--r--unotools/source/config/configmgr.cxx7
-rw-r--r--unotools/source/i18n/transliterationwrapper.cxx20
-rwxr-xr-xunusedcode.easy1
4 files changed, 7 insertions, 25 deletions
diff --git a/unotools/inc/unotools/transliterationwrapper.hxx b/unotools/inc/unotools/transliterationwrapper.hxx
index c4c340d30150..d6ac07d9fb6a 100644
--- a/unotools/inc/unotools/transliterationwrapper.hxx
+++ b/unotools/inc/unotools/transliterationwrapper.hxx
@@ -118,10 +118,6 @@ public:
const String& rStr1, sal_Int32 nPos1, sal_Int32 nCount1, sal_Int32& nMatch1,
const String& rStr2, sal_Int32 nPos2, sal_Int32 nCount2, sal_Int32& nMatch2 ) const;
- sal_Int32 compareSubstring(
- const String& rStr1, sal_Int32 nOff1, sal_Int32 nLen1,
- const String& rStr2, sal_Int32 nOff2, sal_Int32 nLen2 ) const;
-
sal_Int32 compareString( const String& rStr1, const String& rStr2 ) const;
diff --git a/unotools/source/config/configmgr.cxx b/unotools/source/config/configmgr.cxx
index f761c5f0901f..14bc4358dca0 100644
--- a/unotools/source/config/configmgr.cxx
+++ b/unotools/source/config/configmgr.cxx
@@ -227,6 +227,10 @@ utl::ConfigManager::addConfigItem(utl::ConfigItem & item) {
}
void utl::ConfigManager::removeConfigItem(utl::ConfigItem & item) {
+ static int hack = 0;
+ fprintf(stderr, "remove %d of %p\n", hack, &item);
+ ++hack;
+
for (std::list< ConfigItem * >::iterator i(items_.begin());
i != items_.end(); ++i)
{
@@ -239,6 +243,9 @@ void utl::ConfigManager::removeConfigItem(utl::ConfigItem & item) {
void utl::ConfigManager::registerConfigItem(utl::ConfigItem * item) {
OSL_ASSERT(item != 0);
+ static int hack = 0;
+ fprintf(stderr, "add %d is %p\n", hack, item);
+ ++hack;
items_.push_back(item);
}
diff --git a/unotools/source/i18n/transliterationwrapper.cxx b/unotools/source/i18n/transliterationwrapper.cxx
index eaae56b0b87f..ea7aaa856de5 100644
--- a/unotools/source/i18n/transliterationwrapper.cxx
+++ b/unotools/source/i18n/transliterationwrapper.cxx
@@ -217,26 +217,6 @@ sal_Bool TransliterationWrapper::equals(
return sal_False;
}
-
-sal_Int32 TransliterationWrapper::compareSubstring(
- const String& rStr1, sal_Int32 nOff1, sal_Int32 nLen1,
- const String& rStr2, sal_Int32 nOff2, sal_Int32 nLen2 ) const
-{
- try
- {
- if( bFirstCall )
- loadModuleImpl();
- if ( xTrans.is() )
- return xTrans->compareSubstring( rStr1, nOff1, nLen1, rStr2, nOff2, nLen2 );
- }
- catch (const Exception& e)
- {
- SAL_WARN( "unotools.i18n", "compareSubstring: Exception caught " << e.Message );
- }
- return 0;
-}
-
-
sal_Int32 TransliterationWrapper::compareString( const String& rStr1, const String& rStr2 ) const
{
try
diff --git a/unusedcode.easy b/unusedcode.easy
index dbfcc024216a..dd168e5ccbbc 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -1077,5 +1077,4 @@ ucbhelper::Content::getPropertyValues(com::sun::star::uno::Sequence<int> const&)
ucbhelper::Content::insertNewContent(rtl::OUString const&, com::sun::star::uno::Sequence<int> const&, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&, com::sun::star::uno::Reference<com::sun::star::io::XInputStream> const&, ucbhelper::Content&)
ucbhelper::SimpleCertificateValidationRequest::getResponse() const
utl::OConfigurationNode::appendNode(rtl::OUString const&, utl::OConfigurationNode const&) const
-utl::TransliterationWrapper::compareSubstring(String const&, int, int, String const&, int, int) const
vcl::PDFWriter::DrawPixel(Polygon const&, Color const*)