From 4bb58c21bd69d037fe21f96d3a554ea586051b61 Mon Sep 17 00:00:00 2001 From: BoykoAlex Date: Wed, 15 Feb 2017 18:14:16 -0500 Subject: [PATCH] Removed unused code --- .../ide/vscode/commons/gradle/GradleCore.java | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/vscode-extensions/commons/commons-gradle/src/main/java/org/springframework/ide/vscode/commons/gradle/GradleCore.java b/vscode-extensions/commons/commons-gradle/src/main/java/org/springframework/ide/vscode/commons/gradle/GradleCore.java index 6cbd3c9bd..206148de7 100644 --- a/vscode-extensions/commons/commons-gradle/src/main/java/org/springframework/ide/vscode/commons/gradle/GradleCore.java +++ b/vscode-extensions/commons/commons-gradle/src/main/java/org/springframework/ide/vscode/commons/gradle/GradleCore.java @@ -59,35 +59,6 @@ public class GradleCore { this.configuration = configuration; } - public GradleCoreProject readProject(File projectDir) throws GradleException { - ProjectConnection connection = null; - try { - GradleConnector gradleConnector = GradleConnector.newConnector().forProjectDirectory(projectDir); - configuration.configure(gradleConnector); - connection = gradleConnector.connect();; - final EclipseProject project = connection.getModel(EclipseProject.class); - final BuildEnvironment build = connection.getModel(BuildEnvironment.class); - return new GradleCoreProject() { - - @Override - public EclipseProject getProject() { - return project; - } - - @Override - public BuildEnvironment getBuildEnvironment() { - return build; - } - }; - } catch (GradleConnectionException e) { - throw new GradleException(e); - } finally { - if (connection != null) { - connection.close(); - } - } - } - public T getModel(File projectDir, Class modelType) throws GradleException { ProjectConnection connection = null; try {