Remove all unused code in sms.php