Commit c4d1895f authored by Donal McMullan's avatar Donal McMullan
Browse files

Removed unused/unneeded function

parent 1e771f1a
......@@ -555,22 +555,6 @@ function auth_get_available_auth_types($institution=null) {
return $result;
}
/**
* Given a user, returns the authentication instance used.
*
* @param object $user User object with an authinstance member
* @return array Array of auth instance records
*/
function auth_get_auth_instance($user) {
static $cache = array();
if (!isset($cache[$user->id])) {
$cache[$user->id] = get_record('auth_instance', 'id', $user->authinstance, null, null, null, null, 'id, instancename, priority, authname');
}
return $cache[$user->id];
}
/**
* Checks whether the current user needs to change their password, and handles
* the password changing if it's required.
......
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