From 3b71397a3731b6f6cbdde806060c2ca76bd9610b Mon Sep 17 00:00:00 2001 From: udf Date: Sat, 27 Apr 2019 12:22:42 +0200 Subject: [PATCH] remove unused function --- stdplugins/sp_prog_rename.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/stdplugins/sp_prog_rename.py b/stdplugins/sp_prog_rename.py index d2cfb0a..207c903 100644 --- a/stdplugins/sp_prog_rename.py +++ b/stdplugins/sp_prog_rename.py @@ -36,15 +36,6 @@ async def edit_title(chat, title): pass # Everything is ok -async def wait_for_delete(deleted_fut, timeout): - try: - await asyncio.wait_for(deleted_fut, timeout) - return True - except asyncio.TimeoutError: - pass - return False - - async def wait_and_revert(chat_id, timeout): await asyncio.sleep(timeout) await edit_title(chat_id, DEFAULT_TITLES[chat_id])