VIVO-246 Continue cleanup

This commit is contained in:
j2blake 2013-08-05 17:10:55 -04:00
parent 7083d8acc4
commit 969569c385
2 changed files with 1 additions and 5 deletions

View file

@ -182,7 +182,7 @@ public class FreemarkerConfiguration extends Configuration {
return map; return map;
} }
public static Map<String, Object> getMethods() { private static Map<String, Object> getMethods() {
Map<String, Object> map = new HashMap<String, Object>(); Map<String, Object> map = new HashMap<String, Object>();
map.put("profileUrl", new IndividualProfileUrlMethod()); map.put("profileUrl", new IndividualProfileUrlMethod());
map.put("localName", new IndividualLocalNameMethod()); map.put("localName", new IndividualLocalNameMethod());

View file

@ -24,13 +24,9 @@ public class TemplateProcessingHelper {
private static final Log log = LogFactory.getLog(TemplateProcessingHelper.class); private static final Log log = LogFactory.getLog(TemplateProcessingHelper.class);
private Configuration config = null; private Configuration config = null;
private HttpServletRequest request = null;
private ServletContext context = null;
public TemplateProcessingHelper(HttpServletRequest request, ServletContext context) { public TemplateProcessingHelper(HttpServletRequest request, ServletContext context) {
this.config = FreemarkerConfigurationLoader.getConfig(new VitroRequest(request)); this.config = FreemarkerConfigurationLoader.getConfig(new VitroRequest(request));
this.request = request;
this.context = context;
} }
public StringWriter processTemplate(String templateName, Map<String, Object> map) public StringWriter processTemplate(String templateName, Map<String, Object> map)