Removed redundant calls

This commit is contained in:
bm01 2012-06-28 05:35:56 +02:00
parent 2faa0356a5
commit 533955a9c7

View File

@ -139,7 +139,6 @@ public class Database {
try {
PreparedStatement stmt = conn.prepareStatement(sql);
if (stmt.executeQuery() != null) {
stmt.executeQuery();
rs = stmt.getResultSet();
while (rs.next()) {
@ -150,7 +149,6 @@ public class Database {
Rows.put(rs.getRow(), Col);
}
}
}
catch (SQLException ex) {
if (update.equals(DatabaseUpdate.BLAST_MINING)) {
System.out.println("Updating mcMMO MySQL tables for Blast Mining...");
@ -201,8 +199,6 @@ public class Database {
if (isConnected()) {
try {
PreparedStatement stmt = conn.prepareStatement(sql);
stmt = conn.prepareStatement(sql);
if (stmt.executeQuery() != null) {
stmt.executeQuery();
rs = stmt.getResultSet();
if (rs.next()) {
@ -212,7 +208,6 @@ public class Database {
result = 0;
}
}
}
catch (SQLException ex) {
printErrors(ex);
}
@ -264,7 +259,6 @@ public class Database {
if (isConnected()) {
try {
PreparedStatement stmt = conn.prepareStatement(sql);
if (stmt.executeQuery() != null) {
stmt.executeQuery();
rs = stmt.getResultSet();
while (rs.next()) {
@ -275,7 +269,6 @@ public class Database {
Rows.put(rs.getRow(), Col);
}
}
}
catch (SQLException ex) {
printErrors(ex);
}