mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
(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) {
|
public DomainIndexingState getDomainState(int domainId) {
|
||||||
try (var connection = dataSource.getConnection()) {
|
try (var connection = dataSource.getConnection()) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user