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

Unified Diff: third_party/lzma/v4_65/files/CPP/7zip/Compress/ByteSwap.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/Compress/ByteSwap.cpp
diff --git a/third_party/lzma/v4_65/files/CPP/7zip/Compress/ByteSwap.cpp b/third_party/lzma/v4_65/files/CPP/7zip/Compress/ByteSwap.cpp
deleted file mode 100644
index 3f252f2c5bcd44ade559c78d53af5f7caf5cf428..0000000000000000000000000000000000000000
--- a/third_party/lzma/v4_65/files/CPP/7zip/Compress/ByteSwap.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-// ByteSwap.cpp
-
-#include "StdAfx.h"
-
-#include "ByteSwap.h"
-
-STDMETHODIMP CByteSwap2::Init() { return S_OK; }
-
-STDMETHODIMP_(UInt32) CByteSwap2::Filter(Byte *data, UInt32 size)
-{
- const UInt32 kStep = 2;
- UInt32 i;
- for (i = 0; i + kStep <= size; i += kStep)
- {
- Byte b = data[i];
- data[i] = data[i + 1];
- data[i + 1] = b;
- }
- return i;
-}
-
-STDMETHODIMP CByteSwap4::Init() { return S_OK; }
-
-STDMETHODIMP_(UInt32) CByteSwap4::Filter(Byte *data, UInt32 size)
-{
- const UInt32 kStep = 4;
- UInt32 i;
- for (i = 0; i + kStep <= size; i += kStep)
- {
- Byte b0 = data[i];
- Byte b1 = data[i + 1];
- data[i] = data[i + 3];
- data[i + 1] = data[i + 2];
- data[i + 2] = b1;
- data[i + 3] = b0;
- }
- return i;
-}

Powered by Google App Engine
This is Rietveld 408576698