java: remove commented out code

Change-Id: I05c907a38b562231e968c17f14e09ef80e0a6ed1
This commit is contained in:
Noel Grandin
2014-08-11 15:58:09 +02:00
parent 89c0a2b2f6
commit ac5954d7c5
184 changed files with 65 additions and 1084 deletions

View File

@@ -100,7 +100,6 @@ public class ParcelBrowseNode extends PropertySet
catch ( com.sun.star.uno.Exception e )
{
// TODO propagate potential errors
// Pthrow new com.sun.star.uno.RuntimeException( e.toString() );
LogUtils.DEBUG( "Caught exception creating ParcelBrowseNode " + e );
LogUtils.DEBUG( LogUtils.getTrace( e ) );
}

View File

@@ -279,7 +279,6 @@ class ScriptImpl implements XScript
catch (JavaScriptException jse) {
LogUtils.DEBUG( "Caught JavaScriptException exception for JavaScript type = " + jse.getClass() );
String message = jse.getMessage();
//int lineNo = jse.getLineNumber();
Object wrap = jse.getValue();
LogUtils.DEBUG( "\t message " + message );
LogUtils.DEBUG( "\t wrapped type " + wrap.getClass() );

View File

@@ -38,13 +38,6 @@ public class BinaryOnlyFilter implements FileFilter {
@Override
public String toString() {
/* StringBuffer buf = new StringBuffer(DESCRIPTION + ": ");
for (int i = 0; i < EXTENSIONS.length - 1; i++)
buf.append("<" + EXTENSIONS[i] + "> ");
buf.append("<" + EXTENSIONS[EXTENSIONS.length - 1] + ">");
return buf.toString(); */
return DESCRIPTION;
}
}

View File

@@ -110,7 +110,6 @@ public class OpenOfficeDocFileSystem
attr = defattr;
list = defattr;
// transfer = new TransferImpl();
setRefreshTime(REFRESH_OFF);
}
@@ -1032,9 +1031,7 @@ System.out.println(" exception: " + ioe.getMessage());
public void rename(String name)
throws IOException
{
// throw new IOException(
// "cannot rename readonly file: " + getName()); // I18N
// BUG: this is the design bug. Cache has to mamage such kind
// BUG: this is the design bug. Cache has to manage such kind
// of operation in order to keep the data integrity.
this.name = name;
}

View File

@@ -117,82 +117,7 @@ public class ScriptNode extends AbstractNode {
return value;
}
/* public void setValue(Object obj) {
System.out.println("Setting value to: " + obj.toString());
if ((value instanceof String) != true)
throw new IllegalArgumentException(name +
" property must be of type String");
value = obj.toString();
if (name.equals(LOGICAL_NAME)) {
sn.setName(value);
sn.setDisplayName(value.substring(value.lastIndexOf(".") + 1));
sn.setShortDescription(value);
}
} */
}
/* public boolean canRename() {
return true;
}
public void setName(String nue) {
// Update visible name, fire property changes:
super.setName(nue);
} */
/*
public boolean canDestroy() {
return true;
}
public void destroy() throws IOException {
// Actually remove the node itself and fire property changes:
super.destroy();
// perform additional actions, i.e. delete underlying object
} */
// Handle copying and cutting specially:
/*
public boolean canCopy() {
return true;
}
public boolean canCut() {
return true;
}
public Transferable clipboardCopy() {
// Add to, do not replace, the default node copy flavor:
ExTransferable et = ExTransferable.create(super.clipboardCopy());
et.put(new ExTransferable.Single(DataFlavor.stringFlavor) {
protected Object getData() {
return ScriptNode.this.getDisplayName();
}
});
return et;
}
public Transferable clipboardCut() {
// Add to, do not replace, the default node cut flavor:
ExTransferable et = ExTransferable.create(super.clipboardCut());
// This is not so useful because this node will not be destroyed afterwards
// (it is up to the paste type to decide whether to remove the "original",
// and it is not safe to assume that getData will only be called once):
et.put(new ExTransferable.Single(DataFlavor.stringFlavor) {
protected Object getData() {
return ScriptNode.this.getDisplayName();
}
});
return et;
}
*/
// Permit user to customize whole node at once (instead of per-property):
/*
public boolean hasCustomizer() {
return true;
}
public Component getCustomizer() {
return new MyCustomizingPanel(this);
}
*/
}

View File

@@ -62,8 +62,6 @@ public class ParcelContentsIterator implements TemplateWizard.Iterator {
protected WizardDescriptor.Panel[] createPanels() {
return new WizardDescriptor.Panel[] {
// keep the default 2nd panel:
// wiz.targetChooser(),
new ParcelPropertiesPanel(),
};
}