fix #1580 remove deprecated fields

This commit is contained in:
Shinsuke Sugaya 2018-03-29 21:53:55 +09:00
parent 18188ff891
commit 86d94566f1
2 changed files with 1 additions and 15 deletions

View file

@ -81,9 +81,6 @@ public class FessXpathTransformer extends XpathTransformer implements FessTransf
private static final String HTML_CANONICAL_XPATH = "html.canonical.xpath";
@Deprecated
private static final String IGNORE_META_ROBOTS = "ignore.meta.robots";
private static final String IGNORE_ROBOTS_TAGS = "ignore.robots.tags";
private static final String META_NAME_THUMBNAIL_CONTENT = "//META[@name=\"thumbnail\" or @name=\"THUMBNAIL\"]/@content";
@ -204,12 +201,7 @@ public class FessXpathTransformer extends XpathTransformer implements FessTransf
final Map<String, String> configMap = getConfigPrameterMap(responseData, ConfigName.CONFIG);
String ignore = configMap.get(IGNORE_ROBOTS_TAGS);
if (ignore == null) {
ignore = configMap.get(IGNORE_META_ROBOTS);
if (ignore == null) {
if (fessConfig.isCrawlerIgnoreRobotsTags()) {
return;
}
} else if (Boolean.parseBoolean(ignore)) {
if (fessConfig.isCrawlerIgnoreRobotsTags()) {
return;
}
} else if (Boolean.parseBoolean(ignore)) {

View file

@ -102,12 +102,6 @@ public class ViewHelper {
@Resource
protected UserAgentHelper userAgentHelper;
@Deprecated
public int titleLength = 50;
@Deprecated
public int sitePathLength = 50;
public boolean encodeUrlLink = false;
public String urlLinkEncoding = Constants.UTF_8;