remove dead code in updated

old-commit-hash: 21a1792f89
commatwo_master
Adeeb Shihadeh 5 years ago
parent 0fac431c58
commit b2e40a7487
  1. 9
      selfdrive/updated.py

@ -31,7 +31,6 @@ import signal
import fcntl import fcntl
import time import time
import threading import threading
from cffi import FFI
from pathlib import Path from pathlib import Path
from common.basedir import BASEDIR from common.basedir import BASEDIR
@ -52,14 +51,6 @@ OVERLAY_MERGED = os.path.join(STAGING_ROOT, "merged")
FINALIZED = os.path.join(STAGING_ROOT, "finalized") FINALIZED = os.path.join(STAGING_ROOT, "finalized")
# Workaround for lack of os.link in the NEOS/termux python
ffi = FFI()
ffi.cdef("int link(const char *oldpath, const char *newpath);")
libc = ffi.dlopen(None)
def link(src, dest):
return libc.link(src.encode(), dest.encode())
class WaitTimeHelper: class WaitTimeHelper:
def __init__(self, proc): def __init__(self, proc):
self.proc = proc self.proc = proc

Loading…
Cancel
Save