(search) Remove dead code
This commit is contained in:
parent
a258f0af7a
commit
fa7534a362
@ -218,23 +218,6 @@ public class DomainInformationService {
|
||||
}
|
||||
}
|
||||
|
||||
@SneakyThrows
|
||||
public double getDomainQuality(int domainId) {
|
||||
try (var connection = dataSource.getConnection()) {
|
||||
|
||||
try (var stmt = connection.prepareStatement("SELECT QUALITY FROM EC_DOMAIN WHERE ID=?")) {
|
||||
stmt.setInt(1, domainId);
|
||||
var rsp = stmt.executeQuery();
|
||||
if (rsp.next()) {
|
||||
return rsp.getDouble(1);
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
logger.error("DB error", ex);
|
||||
}
|
||||
return -5;
|
||||
}
|
||||
}
|
||||
|
||||
public DomainIndexingState getDomainState(int domainId) {
|
||||
try (var connection = dataSource.getConnection()) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user