mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Remove startProgressBar()
This commit is contained in:
parent
1aee6cf974
commit
227114d127
3 changed files with 2 additions and 12 deletions
|
@ -560,9 +560,4 @@ std::unique_ptr<Logger> makeProgressBar()
|
|||
return std::make_unique<ProgressBar>(isTTY());
|
||||
}
|
||||
|
||||
void startProgressBar()
|
||||
{
|
||||
logger = makeProgressBar();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -7,6 +7,4 @@ namespace nix {
|
|||
|
||||
std::unique_ptr<Logger> makeProgressBar();
|
||||
|
||||
void startProgressBar();
|
||||
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include "store-api.hh"
|
||||
#include "filetransfer.hh"
|
||||
#include "finally.hh"
|
||||
#include "progress-bar.hh"
|
||||
#include "loggers.hh"
|
||||
#include "tarfile.hh"
|
||||
#include "attr-path.hh"
|
||||
#include "eval-inline.hh"
|
||||
|
@ -190,10 +190,7 @@ static int main_nix_prefetch_url(int argc, char * * argv)
|
|||
if (args.size() > 2)
|
||||
throw UsageError("too many arguments");
|
||||
|
||||
Finally f([]() { logger->stop(); });
|
||||
|
||||
if (isTTY())
|
||||
startProgressBar();
|
||||
setLogFormat("bar");
|
||||
|
||||
auto store = openStore();
|
||||
auto state = std::make_unique<EvalState>(myArgs.lookupPath, store, fetchSettings, evalSettings);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue