diff options
author | Noel Grandin <noel@peralex.com> | 2014-12-11 16:25:29 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-12-12 08:16:17 +0000 |
commit | 117a82cd090ddd8efbc500350dc6082730f04720 (patch) | |
tree | 50c07684d43c06fd54d17532caca6a3afafd6967 /qadevOOo/runner/convwatch/DBHelper.java | |
parent | 04b183a9bc792a53a9f081353a79486faa4f3872 (diff) |
java: remove dead code in qadevOOo
found by running UCDetector over the code many times, like peeling
an onion
Change-Id: I54d5147eb1b5c921ad236331bc4c1f765b13ca83
Reviewed-on: https://gerrit.libreoffice.org/13445
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'qadevOOo/runner/convwatch/DBHelper.java')
-rw-r--r-- | qadevOOo/runner/convwatch/DBHelper.java | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/qadevOOo/runner/convwatch/DBHelper.java b/qadevOOo/runner/convwatch/DBHelper.java index dc76af3ad9d2..34e1e1cfdeee 100644 --- a/qadevOOo/runner/convwatch/DBHelper.java +++ b/qadevOOo/runner/convwatch/DBHelper.java @@ -93,28 +93,6 @@ class ShareConnection public class DBHelper { - /** - * This method inserts given values into<br> - * the table 'states' - * @param values a set of comma separated values to be inserted - */ - - public void SQLinsertValues(Connection _aCon, String _sTableName, String value_names, String values) - { - if (_aCon == null) - { - GlobalLogWriter.get().println("DB: ERROR: in SQLinsertValues, connection not established."); - return; - } - - StringBuffer aInsertStr = new StringBuffer(); - - aInsertStr.append( "INSERT INTO " ) . append( _sTableName ); - aInsertStr.append( " (").append( value_names ).append ( ")" ); - aInsertStr.append(" VALUES (" ).append( values ).append( ")" ); - ExecSQL(_aCon, aInsertStr.toString() ); - } - public void SQLupdateValue(Connection _aCon, String _sTableName, String _sSet, String _sWhere) { if (_aCon == null) @@ -205,13 +183,6 @@ public class DBHelper return ts + _sToQuote + ts; } -/* default date format in the MySQL DB yyyy-MM-dd */ - public static String today() - { - return DateHelper.getDateString("yyyy-MM-dd"); - } - - public static final String sComma = ","; public static final String sEqual = "="; public static final String sAND = " AND "; |