summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-01-24 18:32:20 +0000
committerDries Buytaert <dries@buytaert.net>2006-01-24 18:32:20 +0000
commitd20ed7e3be10038f9304b98db1f3cfcbf55b6689 (patch)
treeedc023dbb0052fd287c3e01ae6ff1190e9f41c94
parent42c5683d41e78ce2578ddd80f52290f0eba0fe57 (diff)
downloadbrdo-d20ed7e3be10038f9304b98db1f3cfcbf55b6689.tar.gz
brdo-d20ed7e3be10038f9304b98db1f3cfcbf55b6689.tar.bz2
- Patch #45665 by wtanaka/moshe: removed dead code! w00t!
-rw-r--r--modules/user.module16
-rw-r--r--modules/user/user.module16
2 files changed, 0 insertions, 32 deletions
diff --git a/modules/user.module b/modules/user.module
index 0a9d131e6..6aad9a611 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.
*/
@@ -783,14 +775,6 @@ function user_menu($may_cache) {
}
/**
- * 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 0a9d131e6..6aad9a611 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.
*/
@@ -783,14 +775,6 @@ function user_menu($may_cache) {
}
/**
- * 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.
*/