From b2e40a74871dce606918a6f43ebd21dd128326ff Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 17 Aug 2020 16:21:55 -0700 Subject: [PATCH] remove dead code in updated old-commit-hash: 21a1792f895e006fd70883b5621989e01b539693 --- selfdrive/updated.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/selfdrive/updated.py b/selfdrive/updated.py index 205906806..2747e5753 100755 --- a/selfdrive/updated.py +++ b/selfdrive/updated.py @@ -31,7 +31,6 @@ import signal import fcntl import time import threading -from cffi import FFI from pathlib import Path from common.basedir import BASEDIR @@ -52,14 +51,6 @@ OVERLAY_MERGED = os.path.join(STAGING_ROOT, "merged") 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: def __init__(self, proc): self.proc = proc