summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2019-09-13 12:01:47 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2019-11-26 12:36:46 +0100
commit35012abf30ec1cfc9b5ee29647d4b1e25d98e99f (patch)
treeef2db5018db5878c4fc467bbcaabaac911831c3f /apt-pkg/acquire.cc
parentfe3627d769006a223ff65afff52a21d9ba479cdf (diff)
Fix some style warnings from cppcheck
Unused variable, std::algorithms instead of raw for-loops. There should be no observeable difference in behaviour. Reported-By: cppcheck Gbp-Dch: Ignore
Diffstat (limited to 'apt-pkg/acquire.cc')
-rw-r--r--apt-pkg/acquire.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/apt-pkg/acquire.cc b/apt-pkg/acquire.cc
index 776c82b3b..dd7dedb03 100644
--- a/apt-pkg/acquire.cc
+++ b/apt-pkg/acquire.cc
@@ -1378,8 +1378,6 @@ bool pkgAcquireStatus::Pulse(pkgAcquire *Owner)
int fd = _config->FindI("APT::Status-Fd",-1);
if(fd > 0)
{
- ostringstream status;
-
unsigned long long ETA = 0;
if(CurrentCPS > 0 && TotalBytes > CurrentBytes)
ETA = (TotalBytes - CurrentBytes) / CurrentCPS;