From 6e04c2835a22f551aae93dd23dfd450d018a42c1 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Thu, 7 Sep 2023 20:46:08 -0400 Subject: [PATCH] Remove unused header --- common/confirm.cpp | 1 - common/pgm_base.cpp | 1 - include/cli/cli_names.h | 24 ------------------------ kicad/kicad_cli.cpp | 6 +----- 4 files changed, 1 insertion(+), 31 deletions(-) delete mode 100644 include/cli/cli_names.h diff --git a/common/confirm.cpp b/common/confirm.cpp index 084611615c..08866d5c97 100644 --- a/common/confirm.cpp +++ b/common/confirm.cpp @@ -32,7 +32,6 @@ #include #include #include -#include "cli/cli_names.h" // Set of dialogs that have been chosen not to be shown again static std::unordered_map doNotShowAgainDlgs; diff --git a/common/pgm_base.cpp b/common/pgm_base.cpp index 441c952376..c3c617275f 100644 --- a/common/pgm_base.cpp +++ b/common/pgm_base.cpp @@ -45,7 +45,6 @@ #include #include #include -#include // Needed for the pre wx 3.2 cli workaround #include #include #include diff --git a/include/cli/cli_names.h b/include/cli/cli_names.h deleted file mode 100644 index f07017c4ad..0000000000 --- a/include/cli/cli_names.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - * This program source code file is part of KiCad, a free EDA CAD application. - * - * Copyright (C) 1992-2022 KiCad Developers, see AUTHORS.txt for contributors. - * - * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation, either version 3 of the License, or (at your - * option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see . - */ - -#ifndef CLI_NAMES_H -#define CLI_NAMES_H - -#define KICAD_CLI_APP_NAME wxT( "kicad_cli_app" ) -#endif \ No newline at end of file diff --git a/kicad/kicad_cli.cpp b/kicad/kicad_cli.cpp index 5b3a0f2879..7e73326c7f 100644 --- a/kicad/kicad_cli.cpp +++ b/kicad/kicad_cli.cpp @@ -74,7 +74,6 @@ #include "cli/command_sym_upgrade.h" #include "cli/command_version.h" #include "cli/exit_codes.h" -#include "cli/cli_names.h" // Add this header after all others, to avoid a collision name in a Windows header // on mingw. @@ -284,10 +283,7 @@ static void printHelp( argparse::ArgumentParser& argParser ) bool PGM_KICAD::OnPgmInit() { PGM_BASE::BuildArgvUtf8(); - App().SetAppDisplayName( wxT( "KiCad-cli" ) ); - // App name can be used by internal code to know if this is a - // kicad CLI app or a GUI app that is running - App().SetClassName( KICAD_CLI_APP_NAME ); + App().SetAppDisplayName( wxT( "kicad-cli" ) ); #if defined( DEBUG ) wxString absoluteArgv0 = wxStandardPaths::Get().GetExecutablePath();