aboutsummaryrefslogtreecommitdiff
path: root/src/tools/connection_patcher/Helper.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2017-12-29 12:50:12 +0100
committerShauren <shauren.trinity@gmail.com>2017-12-29 12:50:12 +0100
commitb49fa9658a436c31ffc40100d5a55bee5a3f861e (patch)
tree38e79bad5feff33da73f3901e957bcbf91bc8060 /src/tools/connection_patcher/Helper.cpp
parent02022d3cd65f072874e9f5de061e0b158b6eb634 (diff)
Tools/Patcher: Properly sign certificate bundle7.2.5/24742
Diffstat (limited to 'src/tools/connection_patcher/Helper.cpp')
-rw-r--r--src/tools/connection_patcher/Helper.cpp15
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;