Skip to content

Commit e9cecaf

Browse files
committed
[silicon_creator,uart] Remove dead code from unittest
Signed-off-by: Amaury Pouly <[email protected]>
1 parent 74a7ac1 commit e9cecaf

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

sw/device/silicon_creator/lib/drivers/uart_unittest.cc

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,6 @@
1818
namespace uart_unittest {
1919
namespace {
2020

21-
#if 0
22-
// We supply `ibex_mcycle` and `to_cpu_cycles` because these target-specific
23-
// functions do not exist in the host environment. Because their purpose is
24-
// to measure time for timeouts, we simply return time in microseconds.
25-
26-
extern "C" {
27-
uint64_t ibex_mcycle() {
28-
struct timespec tp;
29-
clock_gettime(CLOCK_MONOTONIC, &tp);
30-
return tp.tv_sec * 1000000 + tp.tv_nsec / 1000;
31-
}
32-
33-
uint64_t to_cpu_cycles(uint64_t usec) { return usec; }
34-
} // extern "C"
35-
#endif
36-
3721
const std::vector<uint8_t> kBytesArray = {
3822
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a',
3923
'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',

0 commit comments

Comments
 (0)