summaryrefslogtreecommitdiff
path: root/odk
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 /odk
parent89c0a2b2f65beeb6f42d3334662100a13169a8d6 (diff)
java: remove commented out code
Change-Id: I05c907a38b562231e968c17f14e09ef80e0a6ed1
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java1
-rw-r--r--odk/examples/DevelopersGuide/Database/CodeSamples.java1
-rw-r--r--odk/examples/DevelopersGuide/Database/Sales.java4
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java3
-rw-r--r--odk/examples/java/ConverterServlet/ConverterServlet.java6
-rw-r--r--odk/examples/java/EmbedDocument/Container1/EmbedContApp.java1
-rw-r--r--odk/examples/java/Inspector/UnoNode.java2
-rw-r--r--odk/examples/java/Spreadsheet/SCalc.java1
-rw-r--r--odk/examples/java/ToDo/ToDo.java1
9 files changed, 0 insertions, 20 deletions
diff --git a/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java b/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
index 6fc9d90e62d4..099391a104c0 100644
--- a/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
+++ b/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
@@ -169,7 +169,6 @@ public class DialogComponent {
//XServiceInfo
public String getImplementationName() {
- // return DialogComponent.class.getName();
return _DialogComponent.class.getName();
}
diff --git a/odk/examples/DevelopersGuide/Database/CodeSamples.java b/odk/examples/DevelopersGuide/Database/CodeSamples.java
index d714aadfce57..f41f2ff11b71 100644
--- a/odk/examples/DevelopersGuide/Database/CodeSamples.java
+++ b/odk/examples/DevelopersGuide/Database/CodeSamples.java
@@ -102,7 +102,6 @@ public class CodeSamples
}
displayTableStructure( con );
}
- // printDataSources();
}
catch(Exception e)
{
diff --git a/odk/examples/DevelopersGuide/Database/Sales.java b/odk/examples/DevelopersGuide/Database/Sales.java
index ef1be66ae4f2..ff1ec6555761 100644
--- a/odk/examples/DevelopersGuide/Database/Sales.java
+++ b/odk/examples/DevelopersGuide/Database/Sales.java
@@ -113,10 +113,6 @@ public class Sales
{
// example for a programmatic way to do updates.
XStatement stmt = con.createStatement();
-// stmt.executeUpdate("INSERT INTO SALES " +
-// "VALUES (4, 102, 5, 'FTOP Darjeeling tea', '2002-01-02',150)");
-//
-// stmt = con.createStatement();
XPropertySet xProp = UnoRuntime.queryInterface(XPropertySet.class,stmt);
xProp.setPropertyValue("ResultSetType", new java.lang.Integer(ResultSetType.SCROLL_INSENSITIVE));
xProp.setPropertyValue("ResultSetConcurrency", new java.lang.Integer(ResultSetConcurrency.UPDATABLE));
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java b/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java
index 1d394a43e3a4..7f4652a2545d 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java
@@ -710,9 +710,6 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
aAutoFormatObj = xAutoFormatsNA.getByName( aAutoFormatName );
else
{
- // create a new auto format (with document service manager!)
-// xDocServiceManager = (com.sun.star.lang.XMultiServiceFactory)
-// UnoRuntime.queryInterface( com.sun.star.lang.XMultiServiceFactory.class, getDocument() );
aAutoFormatObj = xDocServiceManager.createInstance(
"com.sun.star.sheet.TableAutoFormat" );
xAutoFormatsNA.insertByName( aAutoFormatName, aAutoFormatObj );
diff --git a/odk/examples/java/ConverterServlet/ConverterServlet.java b/odk/examples/java/ConverterServlet/ConverterServlet.java
index 607fc140ab5a..be1b5cbc4ea2 100644
--- a/odk/examples/java/ConverterServlet/ConverterServlet.java
+++ b/odk/examples/java/ConverterServlet/ConverterServlet.java
@@ -312,12 +312,6 @@ public class ConverterServlet extends HttpServlet {
xComponent.dispose();
}
-// }
-// catch( Exception exception ) {
-// exception.printStackTrace();
-// return( "" );
-// }
-
if ( stringConvertedFile.startsWith( "file:///" ) ) {
// Truncating the beginning of the file name
stringConvertedFile = stringConvertedFile.substring( 8 );
diff --git a/odk/examples/java/EmbedDocument/Container1/EmbedContApp.java b/odk/examples/java/EmbedDocument/Container1/EmbedContApp.java
index 5c01baf71aa7..fad4b844466a 100644
--- a/odk/examples/java/EmbedDocument/Container1/EmbedContApp.java
+++ b/odk/examples/java/EmbedDocument/Container1/EmbedContApp.java
@@ -124,7 +124,6 @@ public class EmbedContApp extends Applet implements MouseListener, XEmbeddedClie
m_aObjectMenu.add( aItem );
// Handle mouse clicks in our window.
-// addMouseListener( new MouseWatcher() );
addMouseListener( this );
}
diff --git a/odk/examples/java/Inspector/UnoNode.java b/odk/examples/java/Inspector/UnoNode.java
index 51e99324ccad..965f8aa0ad0a 100644
--- a/odk/examples/java/Inspector/UnoNode.java
+++ b/odk/examples/java/Inspector/UnoNode.java
@@ -316,10 +316,8 @@ public class UnoNode{
private static Type sequenceComponentType(Type sequenceType) {
-// assert sequenceType.getTypeClass() == TypeClass.SEQUENCE;
String n = sequenceType.getTypeName();
final String PREFIX = "[]";
-// assert n.startsWith(PREFIX);
return new Type(n.substring(PREFIX.length()));
}
diff --git a/odk/examples/java/Spreadsheet/SCalc.java b/odk/examples/java/Spreadsheet/SCalc.java
index 51c869e6eec8..8f4e1d98982c 100644
--- a/odk/examples/java/Spreadsheet/SCalc.java
+++ b/odk/examples/java/Spreadsheet/SCalc.java
@@ -315,7 +315,6 @@ public class SCalc {
XPropertySet oTPS = UnoRuntime.queryInterface(
XPropertySet.class, xChart.getTitle() );
oTPS.setPropertyValue("String","The new title");
- //oDiag.Dim3D();
} catch (Exception e){
System.err.println("Changin Properties failed "+e);
e.printStackTrace(System.err);
diff --git a/odk/examples/java/ToDo/ToDo.java b/odk/examples/java/ToDo/ToDo.java
index 71a628316daf..e40dfc8873f4 100644
--- a/odk/examples/java/ToDo/ToDo.java
+++ b/odk/examples/java/ToDo/ToDo.java
@@ -581,7 +581,6 @@ public class ToDo {
private String getStringFromGregorianCalendar( GregorianCalendar gregCal ) {
String sDate = ( gregCal.get( Calendar.MONTH ) + 1 )
+ STRING_SEPARATOR + gregCal.get( Calendar.DATE )
-// + STRING_SEPARATOR + ( gregCal.get( Calendar.MONTH ) + 1 )
+ STRING_SEPARATOR + gregCal.get( Calendar.YEAR );
return sDate;