Skip to content

Commit e22bb8e

Browse files
committed
removed unused method
1 parent cbdbe90 commit e22bb8e

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

RetailCoder.VBE/Inspections/VariableNotAssignedInspection.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,5 @@ public IEnumerable<CodeInspectionResultBase> GetInspectionResults(IEnumerable<VB
103103

104104
return unassignedDeclarations;
105105
}
106-
107-
private IEnumerable<VisualBasic6Parser.AmbiguousIdentifierContext> FindUnassignedLocals(ParserRuleContext procedureContext, IEnumerable<VisualBasic6Parser.AmbiguousIdentifierContext> globals)
108-
{
109-
return procedureContext.GetRuleContexts<VisualBasic6Parser.VariableSubStmtContext>()
110-
.Select(variable => variable.ambiguousIdentifier())
111-
.Union(globals)
112-
.Where(identifier =>
113-
procedureContext.GetContexts<VariableAssignmentListener, VisualBasic6Parser.AmbiguousIdentifierContext>(new VariableAssignmentListener())
114-
.All(assignment => assignment.GetText() != identifier.GetText()));
115-
}
116106
}
117107
}

RetailCoder.VBE/UI/CodeInspections/CodeInspectionsDockablePresenter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ private void OnNavigateCodeIssue(object sender, NavigateCodeEventArgs e)
6969
private void OnRefreshCodeInspections(object sender, EventArgs e)
7070
{
7171
Control.Cursor = Cursors.WaitCursor;
72-
RefreshAsync();
72+
Refresh();
7373
Control.Cursor = Cursors.Default;
7474
}
7575

76-
private async void RefreshAsync()
76+
private void Refresh()
7777
{
7878
var code = (_parser.Parse(VBE.ActiveVBProject)).ToList();
7979

0 commit comments

Comments
 (0)