mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 03:52:11 +08:00
remove dead code in updated
old-commit-hash: 21a1792f895e006fd70883b5621989e01b539693
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user