Skip to content

Commit

Permalink
remove unnecessary functions
Browse files Browse the repository at this point in the history
  • Loading branch information
BenAlvo1 committed Jan 22, 2025
1 parent 7ed115b commit 078fcac
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -713,21 +713,6 @@ private JPanel buildAttackVectorPanel(Runnable runnableUpdater, @NotNull Project
return panel;
}

private void updateAttackVectorPanel(Runnable runnableUpdater, @NotNull Project project, @NotNull List<Node> nodes, JPanel panel, JLabel bflHint, Integer bfl) {
panel.removeAll();
addHeader(panel, Resource.NODES);

if(bfl >= 0) {
bflHint.setText(Bundle.message(Resource.BFL_HINT));
bflHint.setIcon(CxIcons.CHECKMARX_13_COLOR);
panel.add(bflHint, "span, growx, wrap");
} else {
panel.remove(bflHint);
}
generateAttackVectorNodes(project, nodes, panel, bfl);
runnableUpdater.run();
}

private void generateAttackVectorNodes(@NotNull Project project, @NotNull List<Node> nodes, JPanel panel, Integer bfl) {
for (int i = 0; i < nodes.size(); i++) {
Node node = nodes.get(i);
Expand All @@ -743,12 +728,6 @@ private void generateAttackVectorNodes(@NotNull Project project, @NotNull List<N
BoldLabel label = new BoldLabel(labelContent,SwingConstants.LEFT);
label.setOpaque(true);

// if(i == bfl) {
// label.setIcon(CxIcons.CHECKMARX_13_COLOR);
// } else {
// label.setIcon(EmptyIcon.ICON_13);
// }

CxLinkLabel link = new CxLinkLabel(capToLen(node.getFileName()),
mouseEvent -> navigate(project, fileNode));

Expand Down

0 comments on commit 078fcac

Please sign in to comment.