diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-05 09:54:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-05 11:31:50 +0200 |
commit | 0c5f51ebbcb7e22baa913e2012e3dcfcc6cf7897 (patch) | |
tree | 3d441110176e37c1a6ba2d15a3653d5023863075 /scripting/java/com/sun/star | |
parent | d26540bb05b0443e7988da34372c86f88cbf1f6c (diff) |
java: remove commented out code
Change-Id: I44e2043e5da23bc9421c03e550ef1d8b7ebaad36
Diffstat (limited to 'scripting/java/com/sun/star')
8 files changed, 0 insertions, 29 deletions
diff --git a/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java b/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java index 7552d2d2e9d5..9d0283234b24 100644 --- a/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java +++ b/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java @@ -54,7 +54,6 @@ public class ParcelBrowseNode extends PropertySet implements XBrowseNode, XInvocation { private ScriptProvider provider; - //private RootBrowseNode parent; private Collection<XBrowseNode> browsenodes; private ParcelContainer container; private Parcel parcel; @@ -255,8 +254,6 @@ public class ParcelBrowseNode extends PropertySet LogUtils.DEBUG( LogUtils.getTrace( e ) ); result = new Any(new Type(Boolean.class), Boolean.FALSE); - // throw new com.sun.star.reflection.InvocationTargetException( - // "Error creating script: " + e.getMessage()); } } else if (aFunctionName.equals("Deletable")) @@ -275,9 +272,6 @@ public class ParcelBrowseNode extends PropertySet catch (Exception e) { result = new Any(new Type(Boolean.class), Boolean.FALSE); - - // throw new com.sun.star.reflection.InvocationTargetException( - // "Error deleting parcel: " + e.getMessage()); } } else if (aFunctionName.equals("Renamable")) @@ -327,9 +321,6 @@ public class ParcelBrowseNode extends PropertySet catch (Exception e) { result = new Any(new Type(Boolean.class), Boolean.FALSE); - - // throw new com.sun.star.reflection.InvocationTargetException( - // "Error renaming parcel: " + e.getMessage()); } } diff --git a/scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java b/scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java index 63a2d8d0ddc4..7c53fae52bbb 100644 --- a/scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java +++ b/scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java @@ -245,9 +245,6 @@ public class ProviderBrowseNode extends PropertySet LogUtils.DEBUG("ProviderBrowseNode[create] failed with: " + e ); LogUtils.DEBUG( LogUtils.getTrace( e ) ); result = new Any(new Type(Boolean.class), Boolean.FALSE); - - // throw new com.sun.star.reflection.InvocationTargetException( - // "Error creating script: " + e.getMessage()); } } else { diff --git a/scripting/java/com/sun/star/script/framework/container/DeployedUnoPackagesDB.java b/scripting/java/com/sun/star/script/framework/container/DeployedUnoPackagesDB.java index 8cafb62a0f51..df018f488f99 100644 --- a/scripting/java/com/sun/star/script/framework/container/DeployedUnoPackagesDB.java +++ b/scripting/java/com/sun/star/script/framework/container/DeployedUnoPackagesDB.java @@ -18,7 +18,6 @@ package com.sun.star.script.framework.container; -import java.io.File; import java.io.InputStream; import java.io.OutputStream; import java.io.IOException; @@ -26,10 +25,6 @@ import java.io.ByteArrayInputStream; import java.util.ArrayList; -// import javax.xml.parsers.DocumentBuilderFactory; -// import javax.xml.parsers.DocumentBuilder; -// import javax.xml.parsers.ParserConfigurationException; - import org.w3c.dom.*; public class DeployedUnoPackagesDB { diff --git a/scripting/java/com/sun/star/script/framework/container/Parcel.java b/scripting/java/com/sun/star/script/framework/container/Parcel.java index 026d1df834e5..6e3ba9fb4ce2 100644 --- a/scripting/java/com/sun/star/script/framework/container/Parcel.java +++ b/scripting/java/com/sun/star/script/framework/container/Parcel.java @@ -251,7 +251,6 @@ public class Parcel implements XNameContainer ScriptMetaData script = null; if ( ( script = (ScriptMetaData)getByName( Name ) ) != null ) { -// if ( script.hasSource() ) { if ( !script.removeSourceFile() ) { diff --git a/scripting/java/com/sun/star/script/framework/container/ParcelDescriptor.java b/scripting/java/com/sun/star/script/framework/container/ParcelDescriptor.java index 4a28f30bbc3f..87ed54b0242e 100644 --- a/scripting/java/com/sun/star/script/framework/container/ParcelDescriptor.java +++ b/scripting/java/com/sun/star/script/framework/container/ParcelDescriptor.java @@ -35,9 +35,6 @@ import org.w3c.dom.DOMException; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NodeList; -// import javax.xml.parsers.DocumentBuilderFactory; -// import javax.xml.parsers.DocumentBuilder; -// import javax.xml.parsers.ParserConfigurationException; public class ParcelDescriptor { diff --git a/scripting/java/com/sun/star/script/framework/container/UnoPkgContainer.java b/scripting/java/com/sun/star/script/framework/container/UnoPkgContainer.java index e592b028a921..3b1cd1db7aa1 100644 --- a/scripting/java/com/sun/star/script/framework/container/UnoPkgContainer.java +++ b/scripting/java/com/sun/star/script/framework/container/UnoPkgContainer.java @@ -211,7 +211,6 @@ public class UnoPkgContainer extends ParcelContainer DeployedUnoPackagesDB dp = null; try { -// String path = containerUrl.substring( 0, containerUrl.lastIndexOf("/") ); String packagesUrl = PathUtils.make_url( extensionDb, "/Scripts/" + extensionRepository + "-extension-desc.xml" ); LogUtils.DEBUG("getUnoPackagesDB() looking for existing db in " + packagesUrl ); if ( m_xSFA.exists( packagesUrl ) ) @@ -270,7 +269,6 @@ public class UnoPkgContainer extends ParcelContainer OutputStream os = null; try { -// String path = containerUrl.substring( 0, containerUrl.lastIndexOf("/") ); String packagesUrl = PathUtils.make_url( extensionDb, "/Scripts/" + extensionRepository + "-extension-desc.xml" ); xos = m_xSFA.openFileWrite( packagesUrl ); XTruncate xTrc = UnoRuntime.queryInterface( XTruncate.class, xos ); diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java index f033ffdf1dd5..d19a772d2d7f 100644 --- a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java +++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java @@ -323,7 +323,6 @@ class ScriptImpl implements XScript raiseEditor( lineNum ); - //String stackTrace = te.getScriptStackTrace(); // never seems to have any info?? if ( usefulInfoIndex > -1 ) { message = message.substring( usefulInfoIndex + 2 ); diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptSourceModel.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptSourceModel.java index ebf3d6e7fbac..aaf6abb5d2ae 100644 --- a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptSourceModel.java +++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptSourceModel.java @@ -79,8 +79,6 @@ public class ScriptSourceModel { throws Exception { Object result = null; - // Thread execThread = new Thread() { - // public void run() { if ( cl != null ) { // sets this threads class loader @@ -118,9 +116,6 @@ public class ScriptSourceModel { else { result = interpreter.eval(getText()); } - // } - // }; - // execThread.start(); return result; } public void indicateErrorLine( int lineNum ) |