Skip to content

Commit b5ca45c

Browse files
committed
fix: remove unneeded reset nodes
1 parent 8c5cf0b commit b5ca45c

3 files changed

Lines changed: 0 additions & 24 deletions

File tree

plugin/src/main/java/io/snyk/eclipse/plugin/views/snyktoolview/ISnykToolView.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,4 @@ static String getPlural(long count) {
115115
* @return
116116
*/
117117
abstract void disableDelta();
118-
119-
/**
120-
* Remove the scan results for the Project from the TreeViewer.
121-
*
122-
* @param project
123-
*/
124-
abstract void resetContentRootNode(String project);
125118
}

plugin/src/main/java/io/snyk/eclipse/plugin/views/snyktoolview/SnykToolView.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -186,22 +186,6 @@ public ProductTreeNode getProductNode(String product, String folderPath) {
186186
return null;
187187
}
188188

189-
@Override
190-
public void resetContentRootNode(String project) {
191-
if (project == null ) {
192-
return;
193-
}
194-
195-
for (TreeNode child : rootObject.getChildren()) {
196-
if (child instanceof ContentRootNode) {
197-
ContentRootNode contentRoot = (ContentRootNode) child;
198-
if (project.startsWith(contentRoot.getName())) {
199-
resetNode(contentRoot);
200-
}
201-
}
202-
}
203-
}
204-
205189
@Override
206190
public BaseTreeNode getRoot() {
207191
return ((RootNode) treeViewer.getInput());

plugin/src/main/java/io/snyk/languageserver/protocolextension/SnykExtendedLanguageClient.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ public void triggerScan(IProject project) {
185185

186186
try {
187187
if (project != null) {
188-
this.toolView.resetContentRootNode(project.getName());
189188
executeCommand(LsCommandID.COMMAND_WORKSPACE_FOLDER_SCAN,
190189
List.of(project.getLocation().toOSString()));
191190
return;

0 commit comments

Comments
 (0)