Skip to content

Commit 11dc905

Browse files
committed
remove unused function
1 parent e5a586e commit 11dc905

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

tests/safety/common.py

-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ class UNSAFE_MODE:
1313
DISABLE_STOCK_AEB = 2
1414
RAISE_LONGITUDINAL_LIMITS_TO_ISO_MAX = 8
1515

16-
def twos_comp(val, bits):
17-
if val >= 0:
18-
return val
19-
else:
20-
return (2**bits) + val
21-
2216
def package_can_msg(msg):
2317
addr, _, dat, bus = msg
2418
rdlr, rdhr = struct.unpack('II', dat.ljust(8, b'\x00'))

0 commit comments

Comments
 (0)