Skip to content

Commit 17f11f9

Browse files
author
Jiří Štefan
committed
Removed unused function
1 parent 1a281dc commit 17f11f9

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/machine/predictor.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@ LOG_CATEGORY("machine.BranchPredictor");
44

55
using namespace machine;
66

7-
const char *machine::int_to_bit_string(const uint64_t value, const uint8_t size) {
8-
std::string string = "";
9-
for (int8_t i = size - 1; i >= 0; i--) {
10-
string.append((value >> i) & 0x1 ? "1" : "0");
11-
}
12-
return string.c_str();
13-
}
14-
157
QStringView machine::branch_result_to_string(const BranchResult result, const bool abbrv) {
168
switch (result)
179
{

src/machine/predictor.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace machine {
1313

14-
const char *int_to_bit_string(const uint64_t value, const uint8_t size = 8);
15-
1614
QStringView branch_result_to_string(const BranchResult result, const bool abbrv = false);
1715

1816
QStringView predictor_state_to_string(const PredictorState state, const bool abbrv = false);

0 commit comments

Comments
 (0)