asyncio: Drop some useless code from tasks.py.

See also issue 24017.
1 file changed