(minor) Remove dead code.
This commit is contained in:
parent
2001d0f707
commit
54ed3b86ba
@ -312,17 +312,6 @@ public class CrawlerRetreiver implements AutoCloseable {
|
|||||||
|| proto.equalsIgnoreCase("https");
|
|| proto.equalsIgnoreCase("https");
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME this does not belong in the crawler
|
|
||||||
private Optional<EdgeUrl> findCanonicalUrl(EdgeUrl baseUrl, Document parsed) {
|
|
||||||
baseUrl = baseUrl.domain.toRootUrl();
|
|
||||||
|
|
||||||
for (var link : parsed.select("link[rel=canonical]")) {
|
|
||||||
return linkParser.parseLink(baseUrl, link);
|
|
||||||
}
|
|
||||||
|
|
||||||
return Optional.empty();
|
|
||||||
}
|
|
||||||
|
|
||||||
private String findIp(String domain) {
|
private String findIp(String domain) {
|
||||||
try {
|
try {
|
||||||
return InetAddress.getByName(domain).getHostAddress();
|
return InetAddress.getByName(domain).getHostAddress();
|
||||||
|
Loading…
Reference in New Issue
Block a user