Kaydet (Commit) 7cba598a authored tarafından Noel Grandin's avatar Noel Grandin

Java cleanup, delete some dead code

Change-Id: I4423cc7ec49769e256f73d9b7fba7b78f84f932f
üst 8be40d31
......@@ -145,8 +145,6 @@ public class Test05 implements StorageTest {
XStream xSubStream2clone = m_aTestHelper.OpenStream( xSubSubStorage,
"SubStream2",
ElementModes.READ | ElementModes.NOCREATE );
if ( xSubStream2 == null )
return false;
// so now the first stream can not be open neither for reading nor for writing
......
......@@ -444,10 +444,6 @@ public class OfficeProvider implements AppProvider
if (debug && exc != null && exc.length() != 0)
{
if (exc == null)
{
exc = "";
}
dbg("Could not connect an Office. " + exc);
}
......
......@@ -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
{
......
......@@ -37,14 +37,10 @@ public class FileUpdater {
try {
BufferedReader reader = new BufferedReader(new FileReader(in_file));
count = -1;
for (String s = reader.readLine(); s != null; s = reader.readLine()) { //</oor:node>
for (String s = reader.readLine(); s != null; s = reader.readLine()) { //</oor:node>
count = count + 1;
if(s != null) {
s.trim();
xmlArray[count] = s;
}
else
break;
s.trim();
xmlArray[count] = s;
}
}
catch( IOException ioe ) {
......@@ -111,14 +107,10 @@ public class FileUpdater {
try {
BufferedReader reader = new BufferedReader(new FileReader(in_file));
count = -1;
for (String s = reader.readLine(); s != null; s = reader.readLine()) { //</oor:node>
for (String s = reader.readLine(); s != null; s = reader.readLine()) { //</oor:node>
count = count + 1;
if(s != null) {
s.trim();
xmlArray[count] = s;
}
else
break;
s.trim();
xmlArray[count] = s;
}
}
catch( IOException ioe ) {
......@@ -187,14 +179,10 @@ public class FileUpdater {
try {
BufferedReader reader = new BufferedReader(new FileReader(in_file));
count = -1;
for (String s = reader.readLine(); s != null; s = reader.readLine()) {
for (String s = reader.readLine(); s != null; s = reader.readLine()) {
count = count + 1;
if(s != null) {
s.trim();
xmlArray[count] = s;
}
else
break;
s.trim();
xmlArray[count] = s;
}
}
catch( IOException ioe ) {
......
......@@ -135,8 +135,6 @@ class NodeFactory
AccTreeNode aNode = new AccTreeNode (xAccessible, xContext, sDisplay, aParent);
addDefaultHandlers (aNode, xContext);
if (aNode == null)
System.out.println ("createDefaultNode == null");
return aNode;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment