[Libreoffice-commits] core.git: sfx2/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Aug 2 20:15:53 UTC 2018


 sfx2/source/appl/sfxpicklist.cxx |   17 -----------------
 1 file changed, 17 deletions(-)

New commits:
commit 46d5bde3800e3010978ed650cfe72908698944de
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Aug 2 17:01:31 2018 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Aug 2 22:15:29 2018 +0200

    m_xStringLength is unused
    
    Change-Id: I244ca2c34363d0776a3cc18953a1c9b28467da44
    Reviewed-on: https://gerrit.libreoffice.org/58493
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sfx2/source/appl/sfxpicklist.cxx b/sfx2/source/appl/sfxpicklist.cxx
index c243dac224e3..e95daa5a82cf 100644
--- a/sfx2/source/appl/sfxpicklist.cxx
+++ b/sfx2/source/appl/sfxpicklist.cxx
@@ -62,19 +62,6 @@ using namespace ::com::sun::star::beans;
 using namespace ::com::sun::star::util;
 
 
-class StringLength : public ::cppu::WeakImplHelper< XStringWidth >
-{
-    public:
-        StringLength() {}
-
-        // XStringWidth
-        sal_Int32 SAL_CALL queryStringWidth( const OUString& aString ) override
-        {
-            return aString.getLength();
-        }
-};
-
-
 namespace
 {
     class thePickListMutex
@@ -83,9 +70,6 @@ namespace
 
 class SfxPickListImpl : public SfxListener
 {
-private:
-    css::uno::Reference< css::util::XStringWidth > m_xStringLength;
-
     /**
      * Adds the given document to the pick list (recent documents) if it satisfies
        certain requirements, e.g. being writable. Check implementation for requirement
@@ -195,7 +179,6 @@ void SfxPickList::ensure()
 
 SfxPickListImpl::SfxPickListImpl()
 {
-    m_xStringLength = new StringLength;
     StartListening( *SfxGetpApp() );
 }
 


More information about the Libreoffice-commits mailing list