Remove on_sleep as no longer used

on_sleep removed as on_duration was no longer declared or used so we don't need