diff options
Diffstat (limited to 'apt-private/private-main.cc')
| -rw-r--r-- | apt-private/private-main.cc | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/apt-private/private-main.cc b/apt-private/private-main.cc index 1c34b8cd6..6e1d524ce 100644 --- a/apt-private/private-main.cc +++ b/apt-private/private-main.cc @@ -75,22 +75,3 @@ void CheckIfSimulateMode(CommandLine &CmdL) /*{{{*/ } } /*}}}*/ -void CheckIfCalledByScript(int argc, const char *argv[]) /*{{{*/ -{ - if (unlikely(argc < 1)) return; - - if (not IsStdoutAtty() && - not _config->Exists("APT::Version") && - not _config->FindB("Apt::Cmd::Disable-Script-Warning", false)) - { - // NOTE: CLI interface is redundant on the I/interface, this is - // intentional to make it easier to read. - std::cerr << std::endl - << "WARNING: " << flNotDir(argv[0]) << " " - << "does not have a stable CLI interface. " - << "Use with caution in scripts." - << std::endl - << std::endl; - } -} - /*}}}*/ |
