Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(591)

Unified Diff: third_party/lzma/v4_65/files/CPP/7zip/Archive/Split/SplitHandlerOut.cpp

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/lzma/v4_65/files/CPP/7zip/Archive/Split/SplitHandlerOut.cpp
diff --git a/third_party/lzma/v4_65/files/CPP/7zip/Archive/Split/SplitHandlerOut.cpp b/third_party/lzma/v4_65/files/CPP/7zip/Archive/Split/SplitHandlerOut.cpp
deleted file mode 100644
index 6edf86f4ad3c0e00388faa1fb44a13581dde8cf1..0000000000000000000000000000000000000000
--- a/third_party/lzma/v4_65/files/CPP/7zip/Archive/Split/SplitHandlerOut.cpp
+++ /dev/null
@@ -1,102 +0,0 @@
-// Split/OutHandler.cpp
-
-#include "StdAfx.h"
-
-#include "SplitHandler.h"
-#include "../../../Windows/PropVariant.h"
-#include "../../../Common/ComTry.h"
-#include "../../../Common/StringToInt.h"
-
-using namespace NWindows;
-
-namespace NArchive {
-namespace NSplit {
-
-/*
-STDMETHODIMP CHandler::GetFileTimeType(UInt32 *type)
-{
- *type = NFileTimeType::kWindows;
- return S_OK;
-}
-
-STDMETHODIMP CHandler::UpdateItems(ISequentialOutStream *outStream, UInt32 numItems,
- IArchiveUpdateCallback *updateCallback)
-{
- COM_TRY_BEGIN
-
- if (numItems != 1)
- return E_INVALIDARG;
-
- UInt64 volumeSize = 0;
-
- CMyComPtr<IArchiveUpdateCallback2> callback2;
- updateCallback->QueryInterface(IID_IArchiveUpdateCallback2,
- (void **)&callback2);
-
- RINOK(callback2->GetVolumeSize(0, &volumeSize));
-
- Int32 newData;
- Int32 newProperties;
- UInt32 indexInArchive;
- if (!updateCallback)
- return E_FAIL;
-
- UInt32 fileIndex = 0;
- RINOK(updateCallback->GetUpdateItemInfo(fileIndex,
- &newData, &newProperties, &indexInArchive));
-
- if (newProperties != 0)
- {
- {
- NCOM::CPropVariant prop;
- RINOK(updateCallback->GetProperty(fileIndex, kpidIsFolder, &prop));
- if (prop.vt == VT_EMPTY)
- {
- }
- else if (prop.vt != VT_BOOL)
- return E_INVALIDARG;
- else
- {
- if (prop.boolVal != VARIANT_FALSE)
- return E_INVALIDARG;
- }
- }
- {
- NCOM::CPropVariant prop;
- RINOK(updateCallback->GetProperty(fileIndex, kpidIsAnti, &prop));
- if (prop.vt == VT_EMPTY)
- {
- }
- else if (prop.vt != VT_BOOL)
- return E_INVALIDARG;
- else
- {
- if (prop.boolVal != VARIANT_FALSE)
- return E_INVALIDARG;
- }
- }
- }
- UInt64 newSize;
- bool thereIsCopyData = false;
- if (newData != 0)
- {
- NCOM::CPropVariant prop;
- RINOK(updateCallback->GetProperty(fileIndex, kpidSize, &prop));
- if (prop.vt != VT_UI8)
- return E_INVALIDARG;
- newSize = prop.uhVal.QuadPart;
- }
- else
- thereIsCopyData = true;
-
- UInt64 pos = 0;
- while(pos < newSize)
- {
-
- }
- return S_OK;
- COM_TRY_END
-}
-*/
-
-}}

Powered by Google App Engine
This is Rietveld 408576698