[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3' - scripting/source

Tor Lillqvist tml at collabora.com
Tue Apr 3 11:00:34 UTC 2018


 scripting/source/pyprov/pythonscript.py |    5 -----
 1 file changed, 5 deletions(-)

New commits:
commit ab4f89a3b0ece6284379b10af1e7317aa3864009
Author: Tor Lillqvist <tml at collabora.com>
Date:   Fri Jan 12 15:27:01 2018 +0200

    Bin some dead code
    
    We defined the same function member in the class PythonScriptProvider
    twice. The first one was some accidental leftover surely.
    
    Change-Id: I10eebab7084af790a9263176f01f7817fa5124ff
    Reviewed-on: https://gerrit.libreoffice.org/51965
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Tor Lillqvist <tml at collabora.com>
    (cherry picked from commit e25b905106598578449d5b2864654d0f58c3147f)
    Reviewed-on: https://gerrit.libreoffice.org/52088
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/scripting/source/pyprov/pythonscript.py b/scripting/source/pyprov/pythonscript.py
index e312c6a52fbf..f104feb31bb2 100644
--- a/scripting/source/pyprov/pythonscript.py
+++ b/scripting/source/pyprov/pythonscript.py
@@ -980,11 +980,6 @@ class PythonScriptProvider( unohelper.Base, XBrowseNode, XScriptProvider, XNameC
     def getType( self ):
         return self.dirBrowseNode.getType()
 
-    def getScript( self, uri ):
-        log.debug( "DirBrowseNode getScript " + uri + " invoked" )
-
-        raise IllegalArgumentException( "DirBrowseNode couldn't instantiate script " + uri , self , 0 )
-
     def getScript( self, scriptUri ):
         try:
             log.debug( "getScript " + scriptUri + " invoked")


More information about the Libreoffice-commits mailing list