From cd191ed25de93082e4ccbf9561366f25d15565c9 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 6 Oct 2022 14:48:33 +0100 Subject: [PATCH] Fix a couple of probable copy/paste errors. --- kicad/kicad_cli.cpp | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/kicad/kicad_cli.cpp b/kicad/kicad_cli.cpp index d3235dc7fe..b2007d896f 100644 --- a/kicad/kicad_cli.cpp +++ b/kicad/kicad_cli.cpp @@ -22,11 +22,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ -/** - * @file kicad.cpp - * Main KiCad project manager file. - */ - #include #include @@ -178,7 +173,6 @@ bool PGM_KICAD::OnPgmInit() GetSettingsManager().SetKiway( &Kiway ); m_bm.Init(); - return true; } @@ -214,11 +208,7 @@ int PGM_KICAD::OnPgmRun() if( cliCmd ) { - int exitCode = CLI::EXIT_CODES::ERR_UNKNOWN; - if( cliCmd ) - { - exitCode = cliCmd->handler->Perform( Kiway ); - } + int exitCode = cliCmd->handler->Perform( Kiway ); if( exitCode != CLI::EXIT_CODES::AVOID_CLOSING ) { @@ -407,18 +397,6 @@ struct APP_KICAD_CLI : public wxAppConsole return false; // continue on. Return false to abort program } #endif - - /** - * Set MacOS file associations. - * - * @see http://wiki.wxwidgets.org/WxMac-specific_topics - */ -#if defined( __WXMAC__ ) - void MacOpenFile( const wxString& aFileName ) override - { - Pgm().MacOpenFile( aFileName ); - } -#endif }; IMPLEMENT_APP_CONSOLE( APP_KICAD_CLI )