Skip to content

Commit

Permalink
[cleanup] Remove unused requiredVersion parameter of `CodeLiteApp::…
Browse files Browse the repository at this point in the history
…DoFindMenuFile`
  • Loading branch information
Jarod42 committed Feb 2, 2025
1 parent d222fcb commit e1cfb9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions LiteEditor/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,9 +593,9 @@ bool CodeLiteApp::OnInit()
::wxSetWorkingDirectory(homeDir);
// Load all of the XRC files that will be used. You can put everything
// into one giant XRC file if you wanted, but then they become more
// diffcult to manage, and harder to reuse in later projects.
// difficult to manage, and harder to reuse in later projects.
// The menubar
if (!wxXmlResource::Get()->Load(DoFindMenuFile(ManagerST::Get()->GetInstallDir(), wxT("2.0"))))
if (!wxXmlResource::Get()->Load(DoFindMenuFile(ManagerST::Get()->GetInstallDir())))
return false;

// keep the startup directory
Expand Down Expand Up @@ -950,9 +950,8 @@ void CodeLiteApp::MSWReadRegistry()
#endif
}

wxString CodeLiteApp::DoFindMenuFile(const wxString& installDirectory, const wxString& requiredVersion)
wxString CodeLiteApp::DoFindMenuFile(const wxString& installDirectory)
{
wxUnusedVar(requiredVersion);
wxFileName menu_xrc{ installDirectory, MENU_XRC };
menu_xrc.AppendDir("rc");
return menu_xrc.GetFullPath();
Expand Down
2 changes: 1 addition & 1 deletion LiteEditor/app.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class CodeLiteApp : public wxApp
bool IsSingleInstance(const wxCmdLineParser& parser);
void DoCopyGdbPrinters();
void MSWReadRegistry();
wxString DoFindMenuFile(const wxString& installDirectory, const wxString& requiredVersion);
wxString DoFindMenuFile(const wxString& installDirectory);
void AdjustPathForCygwinIfNeeded();
void AdjustPathForMSYSIfNeeded();
void PrintUsage(const wxCmdLineParser& parser);
Expand Down

0 comments on commit e1cfb9e

Please sign in to comment.