Skip to content

Commit e75bbbc

Browse files
authored
feat(bytetrack): remove unreachable code block from lapjv.h (#9563)
Signed-off-by: M. Fatih Cırıt <mfc@autoware.org>
1 parent 6b5b42a commit e75bbbc

File tree

1 file changed

+0
-30
lines changed
  • perception/autoware_bytetrack/lib/include

1 file changed

+0
-30
lines changed

perception/autoware_bytetrack/lib/include/lapjv.h

-30
Original file line numberDiff line numberDiff line change
@@ -64,40 +64,10 @@
6464
b = _temp_index; \
6565
}
6666

67-
#if 0
68-
#include <assert.h>
69-
#define ASSERT(cond) assert(cond)
70-
#define PRINTF(fmt, ...) printf(fmt, ##__VA_ARGS__)
71-
#define PRINT_COST_ARRAY(a, n) \
72-
while (1) { \
73-
printf(#a " = ["); \
74-
if ((n) > 0) { \
75-
printf("%f", (a)[0]); \
76-
for (uint_t j = 1; j < n; j++) { \
77-
printf(", %f", (a)[j]); \
78-
} \
79-
} \
80-
printf("]\n"); \
81-
break; \
82-
}
83-
#define PRINT_INDEX_ARRAY(a, n) \
84-
while (1) { \
85-
printf(#a " = ["); \
86-
if ((n) > 0) { \
87-
printf("%d", (a)[0]); \
88-
for (uint_t j = 1; j < n; j++) { \
89-
printf(", %d", (a)[j]); \
90-
} \
91-
} \
92-
printf("]\n"); \
93-
break; \
94-
}
95-
#else
9667
#define ASSERT(cond)
9768
#define PRINTF(fmt, ...)
9869
#define PRINT_COST_ARRAY(a, n)
9970
#define PRINT_INDEX_ARRAY(a, n)
100-
#endif
10171

10272
typedef signed int int_t;
10373
typedef unsigned int uint_t;

0 commit comments

Comments
 (0)