remove some code in OneShotAlarm.java