remove unused function

This commit is contained in:
udf 2019-04-27 12:22:42 +02:00
parent ccd47186b1
commit 3b71397a37
Signed by: kate
GPG Key ID: F17AECB58C3A3096
1 changed files with 0 additions and 9 deletions

View File

@ -36,15 +36,6 @@ async def edit_title(chat, title):
pass # Everything is ok 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): async def wait_and_revert(chat_id, timeout):
await asyncio.sleep(timeout) await asyncio.sleep(timeout)
await edit_title(chat_id, DEFAULT_TITLES[chat_id]) await edit_title(chat_id, DEFAULT_TITLES[chat_id])