mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Removed redundant calls
This commit is contained in:
parent
2faa0356a5
commit
533955a9c7
@ -139,7 +139,6 @@ public class Database {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
PreparedStatement stmt = conn.prepareStatement(sql);
|
PreparedStatement stmt = conn.prepareStatement(sql);
|
||||||
if (stmt.executeQuery() != null) {
|
|
||||||
stmt.executeQuery();
|
stmt.executeQuery();
|
||||||
rs = stmt.getResultSet();
|
rs = stmt.getResultSet();
|
||||||
while (rs.next()) {
|
while (rs.next()) {
|
||||||
@ -150,7 +149,6 @@ public class Database {
|
|||||||
Rows.put(rs.getRow(), Col);
|
Rows.put(rs.getRow(), Col);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
catch (SQLException ex) {
|
catch (SQLException ex) {
|
||||||
if (update.equals(DatabaseUpdate.BLAST_MINING)) {
|
if (update.equals(DatabaseUpdate.BLAST_MINING)) {
|
||||||
System.out.println("Updating mcMMO MySQL tables for Blast Mining...");
|
System.out.println("Updating mcMMO MySQL tables for Blast Mining...");
|
||||||
@ -201,8 +199,6 @@ public class Database {
|
|||||||
if (isConnected()) {
|
if (isConnected()) {
|
||||||
try {
|
try {
|
||||||
PreparedStatement stmt = conn.prepareStatement(sql);
|
PreparedStatement stmt = conn.prepareStatement(sql);
|
||||||
stmt = conn.prepareStatement(sql);
|
|
||||||
if (stmt.executeQuery() != null) {
|
|
||||||
stmt.executeQuery();
|
stmt.executeQuery();
|
||||||
rs = stmt.getResultSet();
|
rs = stmt.getResultSet();
|
||||||
if (rs.next()) {
|
if (rs.next()) {
|
||||||
@ -212,7 +208,6 @@ public class Database {
|
|||||||
result = 0;
|
result = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
catch (SQLException ex) {
|
catch (SQLException ex) {
|
||||||
printErrors(ex);
|
printErrors(ex);
|
||||||
}
|
}
|
||||||
@ -264,7 +259,6 @@ public class Database {
|
|||||||
if (isConnected()) {
|
if (isConnected()) {
|
||||||
try {
|
try {
|
||||||
PreparedStatement stmt = conn.prepareStatement(sql);
|
PreparedStatement stmt = conn.prepareStatement(sql);
|
||||||
if (stmt.executeQuery() != null) {
|
|
||||||
stmt.executeQuery();
|
stmt.executeQuery();
|
||||||
rs = stmt.getResultSet();
|
rs = stmt.getResultSet();
|
||||||
while (rs.next()) {
|
while (rs.next()) {
|
||||||
@ -275,7 +269,6 @@ public class Database {
|
|||||||
Rows.put(rs.getRow(), Col);
|
Rows.put(rs.getRow(), Col);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
catch (SQLException ex) {
|
catch (SQLException ex) {
|
||||||
printErrors(ex);
|
printErrors(ex);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user