diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-03 15:06:41 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-06 11:45:55 +0200 |
commit | 7cba598a7ddcf02771ed31c8d8fce6f7e02ef715 (patch) | |
tree | df44b82e914a29c971c7fa19c820563090d79aaf /scripting/java/com | |
parent | 8be40d31d78723debd47f671544f480c1c606db7 (diff) |
Java cleanup, delete some dead code
Change-Id: I4423cc7ec49769e256f73d9b7fba7b78f84f932f
Diffstat (limited to 'scripting/java/com')
-rw-r--r-- | scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java b/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java index e1d044cc644f..c0d960008263 100644 --- a/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java +++ b/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java @@ -542,25 +542,17 @@ public abstract class ScriptProvider public java.lang.Object getByName( String aName ) throws com.sun.star.container.NoSuchElementException, com.sun.star.lang.WrappedTargetException { // TODO needs implementing? - if ( true ) - { - throw new com.sun.star.uno.RuntimeException( - "getByName not implemented" ); - } - return new Object(); + throw new com.sun.star.uno.RuntimeException( + "getByName not implemented" ); } public String[] getElementNames() { // TODO needs implementing? String[] result = new String[0]; - if ( true ) - { - throw new com.sun.star.uno.RuntimeException( - "getElementNames not implemented" ); + throw new com.sun.star.uno.RuntimeException( + "getElementNames not implemented" ); - } - return result; } @@ -585,14 +577,8 @@ public abstract class ScriptProvider public boolean hasElements() { // TODO needs implementing? - boolean result = false; - if ( true ) - { - throw new com.sun.star.uno.RuntimeException( - "hasElements not implemented" ); - - } - return result; + throw new com.sun.star.uno.RuntimeException( + "hasElements not implemented" ); } public void replaceByName( String aName, java.lang.Object aElement ) throws com.sun.star.lang.IllegalArgumentException, com.sun.star.container.NoSuchElementException, com.sun.star.lang.WrappedTargetException { |