Commit d20ed7e3 authored by Dries's avatar Dries
Browse files

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

parent 42c5683d
......@@ -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.
......
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment