summaryrefslogtreecommitdiffstats
path: root/src/libs/7zip/win/CPP/7zip/Common/ProgressMt.cpp
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2013-05-02 15:28:22 +0200
committerKarsten Heimrich <karsten.heimrich@digia.com>2013-05-08 13:01:55 +0200
commitd89674f944c419c9473da688993ee69671f2c295 (patch)
tree8422461a5b45d97b6d32dfa8e060e69d600210c9 /src/libs/7zip/win/CPP/7zip/Common/ProgressMt.cpp
parent5ed380ebcf8ef1157f651cbdef8393ccac897ee2 (diff)
Reset to only use the basic LZMA SDK (Windows).
Change-Id: I8088cc4775f6c5397991f00512354836d614ea4e Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'src/libs/7zip/win/CPP/7zip/Common/ProgressMt.cpp')
-rw-r--r--src/libs/7zip/win/CPP/7zip/Common/ProgressMt.cpp53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/libs/7zip/win/CPP/7zip/Common/ProgressMt.cpp b/src/libs/7zip/win/CPP/7zip/Common/ProgressMt.cpp
deleted file mode 100644
index 319bd241b..000000000
--- a/src/libs/7zip/win/CPP/7zip/Common/ProgressMt.cpp
+++ /dev/null
@@ -1,53 +0,0 @@
-// ProgressMt.h
-
-#include "StdAfx.h"
-
-#include "ProgressMt.h"
-
-void CMtCompressProgressMixer::Init(int numItems, ICompressProgressInfo *progress)
-{
- NWindows::NSynchronization::CCriticalSectionLock lock(CriticalSection);
- InSizes.Clear();
- OutSizes.Clear();
- for (int i = 0; i < numItems; i++)
- {
- InSizes.Add(0);
- OutSizes.Add(0);
- }
- TotalInSize = 0;
- TotalOutSize = 0;
- _progress = progress;
-}
-
-void CMtCompressProgressMixer::Reinit(int index)
-{
- NWindows::NSynchronization::CCriticalSectionLock lock(CriticalSection);
- InSizes[index] = 0;
- OutSizes[index] = 0;
-}
-
-HRESULT CMtCompressProgressMixer::SetRatioInfo(int index, const UInt64 *inSize, const UInt64 *outSize)
-{
- NWindows::NSynchronization::CCriticalSectionLock lock(CriticalSection);
- if (inSize != 0)
- {
- UInt64 diff = *inSize - InSizes[index];
- InSizes[index] = *inSize;
- TotalInSize += diff;
- }
- if (outSize != 0)
- {
- UInt64 diff = *outSize - OutSizes[index];
- OutSizes[index] = *outSize;
- TotalOutSize += diff;
- }
- if (_progress)
- return _progress->SetRatioInfo(&TotalInSize, &TotalOutSize);
- return S_OK;
-}
-
-
-STDMETHODIMP CMtCompressProgress::SetRatioInfo(const UInt64 *inSize, const UInt64 *outSize)
-{
- return _progress->SetRatioInfo(_index, inSize, outSize);
-}