From 4188f3adbecbbb3ac6e346524604a2fe3f8d357d Mon Sep 17 00:00:00 2001 From: Brenton Bostick Date: Mon, 27 May 2024 12:46:35 -0400 Subject: [PATCH] remove unused parseLE2 and parseLE4 --- include/tbt-parser/tbt-parser-util.h | 2 -- lib/tbt-parser-util.cpp | 10 ---------- 2 files changed, 12 deletions(-) diff --git a/include/tbt-parser/tbt-parser-util.h b/include/tbt-parser/tbt-parser-util.h index bee853d..273e0dc 100644 --- a/include/tbt-parser/tbt-parser-util.h +++ b/include/tbt-parser/tbt-parser-util.h @@ -24,11 +24,9 @@ uint16_t parseLE2(std::vector::const_iterator &it); -uint16_t parseLE2(const uint8_t *data); uint16_t parseLE2(uint8_t b0, uint8_t b1); uint32_t parseLE4(std::vector::const_iterator &it); -uint32_t parseLE4(const uint8_t *data); uint32_t parseLE4(uint8_t b0, uint8_t b1, uint8_t b2, uint8_t b3); uint16_t parseBE2(std::vector::const_iterator &it); diff --git a/lib/tbt-parser-util.cpp b/lib/tbt-parser-util.cpp index 3f103cc..9e43885 100644 --- a/lib/tbt-parser-util.cpp +++ b/lib/tbt-parser-util.cpp @@ -43,11 +43,6 @@ uint16_t parseLE2(std::vector::const_iterator &it) { } -uint16_t parseLE2(const uint8_t *data) { - return static_cast((data[0] << 0) | (data[1] << 8)); -} - - uint16_t parseLE2(uint8_t b0, uint8_t b1) { return static_cast((b0 << 0) | (b1 << 8)); } @@ -64,11 +59,6 @@ uint32_t parseLE4(std::vector::const_iterator &it) { } -uint32_t parseLE4(const uint8_t *data) { - return static_cast((data[0] << 0) | (data[1] << 8) | (data[2] << 16) | (data[3] << 24)); -} - - uint32_t parseLE4(uint8_t b0, uint8_t b1, uint8_t b2, uint8_t b3) { return static_cast((b0 << 0) | (b1 << 8) | (b2 << 16) | (b3 << 24)); }