Remove copypasta.

This commit is contained in:
akwizgran
2021-02-26 11:27:50 +00:00
committed by Torsten Grote
parent b1a80691db
commit d10e5f025d

View File

@@ -3427,7 +3427,6 @@ abstract class JdbcDatabase implements Database<Connection> {
public void stopCleanupTimer(Connection txn, MessageId m) public void stopCleanupTimer(Connection txn, MessageId m)
throws DbException { throws DbException {
PreparedStatement ps = null; PreparedStatement ps = null;
ResultSet rs = null;
try { try {
String sql = "UPDATE messages SET cleanupDeadline = NULL" String sql = "UPDATE messages SET cleanupDeadline = NULL"
+ " WHERE messageId = ?"; + " WHERE messageId = ?";
@@ -3437,7 +3436,6 @@ abstract class JdbcDatabase implements Database<Connection> {
if (affected < 0 || affected > 1) throw new DbStateException(); if (affected < 0 || affected > 1) throw new DbStateException();
ps.close(); ps.close();
} catch (SQLException e) { } catch (SQLException e) {
tryToClose(rs, LOG, WARNING);
tryToClose(ps, LOG, WARNING); tryToClose(ps, LOG, WARNING);
throw new DbException(e); throw new DbException(e);
} }