Skip to content

Commit

Permalink
Remove unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Oct 20, 2024
1 parent 9689bee commit 665f575
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/ui/controls/codeeditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@ void CodeEditor::OnCharAdded(wxStyledTextEvent& event)
if (lastWord == L"()")
{
wordStart = WordStartPosition(wordStart - 1, false);
const wxString functionName = GetTextRange(wordStart, GetCurrentPos() - 3);
wordStart = WordStartPosition(wordStart - 1, false);
const wxString libraryName = GetTextRange(wordStart, GetCurrentPos() - 3);
auto libraryPos = m_libraryFunctionsWithReturnTypes.find(libraryName);
Expand Down Expand Up @@ -615,7 +614,6 @@ void CodeEditor::OnCharAdded(wxStyledTextEvent& event)
if (previousWord == L"()")
{
previousWordStart = WordStartPosition(previousWordStart - 1, false);
const wxString functionName = GetTextRange(previousWordStart, wordStart - 1);
previousWordStart = WordStartPosition(previousWordStart - 1, false);
const wxString libraryName = GetTextRange(previousWordStart, wordStart - 1);
auto libraryPos = m_libraryFunctionsWithReturnTypes.find(libraryName);
Expand Down

0 comments on commit 665f575

Please sign in to comment.