diff options
Diffstat (limited to 'src/tools/connection_patcher/Helper.cpp')
-rw-r--r-- | src/tools/connection_patcher/Helper.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/tools/connection_patcher/Helper.cpp b/src/tools/connection_patcher/Helper.cpp index 50ad301132d..3dc1b10b9cf 100644 --- a/src/tools/connection_patcher/Helper.cpp +++ b/src/tools/connection_patcher/Helper.cpp @@ -126,15 +126,6 @@ namespace Connection_Patcher return Constants::BinaryTypes(*reinterpret_cast<uint32_t const*>(data.data())); } - std::string GetFileChecksum(std::vector<unsigned char> const& data) - { - SHA256Hash h; - h.UpdateData(data.data(), data.size()); - h.Finalize(); - - return ByteArrayToHexStr(h.GetDigest(), h.GetLength()); - } - std::set<size_t> SearchOffset(std::vector<unsigned char> const& binary, std::vector<unsigned char> const& pattern) { std::set<size_t> offsets; @@ -144,12 +135,6 @@ namespace Connection_Patcher for (size_t j = 0; j < pattern.size(); j++) { - if (pattern[j] == 0) - { - matches++; - continue; - } - if (binary[i + j] != pattern[j]) break; |