summaryrefslogtreecommitdiff
path: root/scripting/examples/java/Newsgroup/OfficeAttachment.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-11 15:58:09 +0200
committerNoel Grandin <noel@peralex.com>2014-08-14 10:59:48 +0200
commitac5954d7c540f34702033d7d951d1d16cb96730a (patch)
tree310ba9698a10c74662de0714db683f932de32b0c /scripting/examples/java/Newsgroup/OfficeAttachment.java
parent89c0a2b2f65beeb6f42d3334662100a13169a8d6 (diff)
java: remove commented out code
Change-Id: I05c907a38b562231e968c17f14e09ef80e0a6ed1
Diffstat (limited to 'scripting/examples/java/Newsgroup/OfficeAttachment.java')
-rw-r--r--scripting/examples/java/Newsgroup/OfficeAttachment.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/scripting/examples/java/Newsgroup/OfficeAttachment.java b/scripting/examples/java/Newsgroup/OfficeAttachment.java
index c6b6fc9befab..41ccfd3dd591 100644
--- a/scripting/examples/java/Newsgroup/OfficeAttachment.java
+++ b/scripting/examples/java/Newsgroup/OfficeAttachment.java
@@ -60,7 +60,6 @@ public class OfficeAttachment
String firstPart = templocationURL.substring( 0, sepPos );
String lastPart = templocationURL.substring( sepPos + 1, templocationURL.length() );
templocationURL = firstPart + "/" + lastPart;
- //JOptionPane.showMessageDialog( null, "Temp Location URL is: " + templocationURL + "\nfirstPart is: " + firstPart + "\nlastPart is: " + lastPart );
}
}
@@ -86,7 +85,6 @@ public class OfficeAttachment
}
else
{
- //int lastSep = attachmentName.lastIndexOf( System.getProperty( "file.separator" ) );
int lastSep = attachmentName.lastIndexOf( "/" );
attachmentName = attachmentName.substring( lastSep + 1, attachmentName.length() );
int dot = attachmentName.indexOf( "." );
@@ -147,18 +145,12 @@ public class OfficeAttachment
{
if( homefiles[i].getName().equals( attachmentName + ".sxw" ) )
{
- //officeFile = new File( homefiles[i].getAbsolutePath() );
- //JOptionPane.showMessageDialog( null, "Found .sxw" );
file = homefiles[i].getAbsolutePath();
}
}
officeFile = new File( file );
- //officeFile = new File( filename + ".sxw" );
- //officeFile = new File (storedDoc.getLocation() );
}
- //status.setStatus( 10, "Attachments successfully created" );
-
}
catch( SecurityException se )
{
@@ -255,14 +247,6 @@ public class OfficeAttachment
public File[] getAttachments()
{
- /*
- if( htmlFile == null && officeFile == null )
- {
- System.out.println( "Error: Document(s) have not been saved." );
- return null;
- }
- */
- //(officeDoc) ? (number = 2) : (number = 1);
statusLine = "Retrieving temp docs";
status.setStatus( 8, statusLine );