Skip to content

Commit 61392cb

Browse files
committed
uasyncio.core: Remove unused Sleep syscall.
It's unused since since sleep() was switched to yield an integer for delay.
1 parent 3ef991c commit 61392cb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

uasyncio.core/uasyncio/core.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ def run_forever(self):
9494
log.debug("Coroutine %s yield result: %s", cb, ret)
9595
if isinstance(ret, SysCall1):
9696
arg = ret.arg
97-
if isinstance(ret, Sleep):
98-
delay = int(arg * 1000)
9997
if isinstance(ret, SleepMs):
10098
delay = arg
10199
elif isinstance(ret, IORead):
@@ -153,9 +151,6 @@ class SysCall1(SysCall):
153151
def __init__(self, arg):
154152
self.arg = arg
155153

156-
class Sleep(SysCall1):
157-
pass
158-
159154
class StopLoop(SysCall1):
160155
pass
161156

0 commit comments

Comments
 (0)