Skip to content

Commit

Permalink
Merge pull request #85 from gamerson/pr-175
Browse files Browse the repository at this point in the history
remove unused method
  • Loading branch information
gamerson authored Oct 24, 2016
2 parents 5058046 + 4bb8914 commit c5752ee
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import com.liferay.project.templates.ProjectTemplatesArgs;

import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Properties;
Expand Down Expand Up @@ -216,22 +215,12 @@ private File getDefaultDir() throws Exception {
return containsDir(baseDir, modulesDir) ? baseDir : modulesDir;
}

private List<String> getTemplates() throws Exception {
List<String> templateNames = new ArrayList<>();

for (String templateName : getTemplateNames()) {
templateNames.add(templateName);
}

return templateNames;
}

private String[] getTemplateNames() throws Exception {
return ProjectTemplates.getTemplates();
}

private boolean isExistingTemplate(String templateName) throws Exception {
List<String> templates = getTemplates();
String[] templates = getTemplateNames();

for (String template : templates) {
if (templateName.equals(template)) {
Expand Down

0 comments on commit c5752ee

Please sign in to comment.