From d20ed7e3be10038f9304b98db1f3cfcbf55b6689 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Tue, 24 Jan 2006 18:32:20 +0000 Subject: [PATCH] - Patch #45665 by wtanaka/moshe: removed dead code! w00t! --- modules/user.module | 16 ---------------- modules/user/user.module | 16 ---------------- 2 files changed, 32 deletions(-) diff --git a/modules/user.module b/modules/user.module index 0a9d131e6b9a..6aad9a61193d 100644 --- a/modules/user.module +++ b/modules/user.module @@ -272,14 +272,6 @@ function user_validate_picture($file, &$edit, $user) { } } -function user_validate_authmap($account, $authname, $module) { - $result = db_query("SELECT COUNT(*) from {authmap} WHERE uid != %d AND authname = '%s'", $account->uid, $authname); - if (db_result($result) > 0) { - $name = module_invoke($module, 'info', 'name'); - return t('The %u ID %s is already taken.', array('%u' => $name, '%s' => theme('placeholder', $authname))); - } -} - /** * Generate a random alphanumeric password. */ @@ -782,14 +774,6 @@ function user_menu($may_cache) { return $items; } -/** - * Called by authentication modules in order to edit/view their authmap information. - */ -function user_get_authname($account, $module) { - $result = db_query("SELECT authname FROM {authmap} WHERE uid = %d AND module = '%s'", $account->uid, $module); - return db_result($result); -} - /** * Accepts an user object, $account, or a DA name and returns an associative * array of modules and DA names. Called at external login. diff --git a/modules/user/user.module b/modules/user/user.module index 0a9d131e6b9a..6aad9a61193d 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -272,14 +272,6 @@ function user_validate_picture($file, &$edit, $user) { } } -function user_validate_authmap($account, $authname, $module) { - $result = db_query("SELECT COUNT(*) from {authmap} WHERE uid != %d AND authname = '%s'", $account->uid, $authname); - if (db_result($result) > 0) { - $name = module_invoke($module, 'info', 'name'); - return t('The %u ID %s is already taken.', array('%u' => $name, '%s' => theme('placeholder', $authname))); - } -} - /** * Generate a random alphanumeric password. */ @@ -782,14 +774,6 @@ function user_menu($may_cache) { return $items; } -/** - * Called by authentication modules in order to edit/view their authmap information. - */ -function user_get_authname($account, $module) { - $result = db_query("SELECT authname FROM {authmap} WHERE uid = %d AND module = '%s'", $account->uid, $module); - return db_result($result); -} - /** * Accepts an user object, $account, or a DA name and returns an associative * array of modules and DA names. Called at external login. -- GitLab