From bcd0603fbda3af3a9d523fc59712763ca1b14169 Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 1 May 2008 22:17:30 +0000 Subject: [PATCH] MDL-14617 removed legacy add admin code --- lib/deprecatedlib.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/deprecatedlib.php b/lib/deprecatedlib.php index 0e1bc646a6..c48d6815f9 100644 --- a/lib/deprecatedlib.php +++ b/lib/deprecatedlib.php @@ -240,18 +240,6 @@ function isguest($userid=0) { return has_capability('moodle/legacy:guest', $context, $userid, false); } -/** - * Add an admin to a site - * - * @uses SITEID - * @param int $userid The id of the user that is being tested against. - * @return bool - * @TODO: remove from cvs - */ -function add_admin($userid) { - return true; -} - function get_user_info_from_db($field, $value) { // For backward compatibility return get_complete_user_data($field, $value); } -- 2.39.5