diff --git a/functions.php b/functions.php index 672d9ef1d..369a3bcf7 100644 --- a/functions.php +++ b/functions.php @@ -1909,14 +1909,6 @@ function login_sequence($link, $mobile = false) { if (!SINGLE_USER_MODE) { - if (defined('_DEBUG_USER_SWITCH') && $_SESSION["uid"]) { - $swu = db_escape_string($_REQUEST["swu"]); - if ($swu) { - $_SESSION["prefs_cache"] = false; - return authenticate_user($link, $swu, null, true); - } - } - $login_action = $_POST["login_action"]; # try to authenticate user if called from login form diff --git a/prefs.php b/prefs.php index 8a0b5237a..656bdaf19 100644 --- a/prefs.php +++ b/prefs.php @@ -149,16 +149,6 @@