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

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Thu Oct 17 05:30:34 UTC 2019


 xmlhelp/source/treeview/tvread.cxx |   10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

New commits:
commit 30d803e83390d8a4f475522dc23bcd107f7fdc12
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Oct 16 22:49:10 2019 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Oct 17 07:29:11 2019 +0200

    Remove code that is dead
    
    ...ever since 8f55fe4c6c73f110b1c72903c209399ff2527ea5 "INTEGRATION: CWS help2"
    dropped p->application and "/" from strBuff.
    
    Change-Id: I48aa9271daac4caf23d932741a5c75cb00ad7ee9
    Reviewed-on: https://gerrit.libreoffice.org/80924
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx
index f0331dea7a29..ddfba452c67d 100644
--- a/xmlhelp/source/treeview/tvread.cxx
+++ b/xmlhelp/source/treeview/tvread.cxx
@@ -123,15 +123,7 @@ namespace treeview {
         {
             if( targetURL.isEmpty() )
             {
-                sal_Int32 len;
-                for ( const TVDom* p = this;; p = p->parent )
-                {
-                    len = p->application.getLength();
-                    if ( len != 0 )
-                        break;
-                }
-
-                OUStringBuffer strBuff( 22 + len + id.getLength() );
+                OUStringBuffer strBuff( 21 + id.getLength() );
                 strBuff.append(
                                     "vnd.sun.star.help://"
                                     ).append(id);


More information about the Libreoffice-commits mailing list