Skip to content

Commit

Permalink
remove unused parseLE2 and parseLE4
Browse files Browse the repository at this point in the history
  • Loading branch information
bostick committed Aug 25, 2024
1 parent 506f999 commit 4188f3a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions include/tbt-parser/tbt-parser-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@


uint16_t parseLE2(std::vector<uint8_t>::const_iterator &it);
uint16_t parseLE2(const uint8_t *data);
uint16_t parseLE2(uint8_t b0, uint8_t b1);

uint32_t parseLE4(std::vector<uint8_t>::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<uint8_t>::const_iterator &it);
Expand Down
10 changes: 0 additions & 10 deletions lib/tbt-parser-util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ uint16_t parseLE2(std::vector<uint8_t>::const_iterator &it) {
}


uint16_t parseLE2(const uint8_t *data) {
return static_cast<uint16_t>((data[0] << 0) | (data[1] << 8));
}


uint16_t parseLE2(uint8_t b0, uint8_t b1) {
return static_cast<uint16_t>((b0 << 0) | (b1 << 8));
}
Expand All @@ -64,11 +59,6 @@ uint32_t parseLE4(std::vector<uint8_t>::const_iterator &it) {
}


uint32_t parseLE4(const uint8_t *data) {
return static_cast<uint32_t>((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<uint32_t>((b0 << 0) | (b1 << 8) | (b2 << 16) | (b3 << 24));
}
Expand Down

0 comments on commit 4188f3a

Please sign in to comment.