- Patch #45665 by wtanaka/moshe: removed dead code! w00t!

4.7.x
Dries Buytaert 2006-01-24 18:32:20 +00:00
parent 42c5683d41
commit d20ed7e3be
2 changed files with 0 additions and 32 deletions

View File

@ -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.

View File

@ -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.