From 6b2dd1cd8515009508d627cad13bd39dd770638c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 5 Jul 2024 10:30:08 +0300 Subject: Drop some old backward compatibility related code --- bdep/new.cli | 18 ------------------ bdep/new.cxx | 7 ------- 2 files changed, 25 deletions(-) diff --git a/bdep/new.cli b/bdep/new.cli index bcbc6c6..9f3f12e 100644 --- a/bdep/new.cli +++ b/bdep/new.cli @@ -656,12 +656,6 @@ namespace bdep bool no-readme; bool no-package-readme; bool alt-naming; - - // Old name for the subdir sub-option (thus undocumented). @@ TMP drop - // - // If specified, we will fail suggesting to use the new sub-option instead. - // - dir_path "source"; }; class cmd_new_lib_options @@ -687,12 +681,6 @@ namespace bdep bool no-readme; bool no-package-readme; bool alt-naming; - - // Old name for the subdir sub-option (thus undocumented). @@ TMP drop. - // - // If specified, we will fail suggesting to use the new sub-option instead. - // - dir_path "source"; }; class cmd_new_bare_options @@ -742,12 +730,6 @@ namespace bdep package rather than a new project." } - // Old name for the --source option (thus undocumented). - // - // If specified, we will fail suggesting to use the new option instead. - // - bool --subdirectory; - dir_path --output-dir|-o { "", diff --git a/bdep/new.cxx b/bdep/new.cxx index 9f4ddf6..9f445a0 100644 --- a/bdep/new.cxx +++ b/bdep/new.cxx @@ -495,9 +495,6 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args) ? cao.type () : optional ()); - if (o.subdirectory ()) - fail << "--subdirectory was renamed to --source"; - if (o.package () && o.source ()) fail << "both --package and --source specified"; @@ -606,10 +603,6 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args) // const type& t (o.type ()); - if ((t == type::exe && t.exe_opt.source_specified ()) || - (t == type::lib && t.lib_opt.source_specified ())) - fail << "--type|-t,source was renamed to --type|-t,subdir"; - // For a library source subdirectory (--source) we don't generate the export // stub, integration tests (because there is no export stub), or the version // header (because the project name used in the .in file will most likely be -- cgit v1.1