Remove unused code in sf.php