Skip to content

Commit

Permalink
Seems I got the only remaining instance of set_default(),
Browse files Browse the repository at this point in the history
so it's time to draw the curtains.
  • Loading branch information
defacer committed Jan 15, 2006
1 parent 249daa5 commit 85e0be2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/moodlelib.php
Expand Up @@ -546,18 +546,6 @@ function optional_variable(&$var, $default=0) {
}


/**
* HACK ALERT! Do not use this function, it will be removed soon!!
* @todo Remove this function soon!
*/
function set_default( &$var, $default ) {
if (empty($var)) {
$var = $default;
return true;
}
return false;
}

/**
* Set a key in global configuration
*
Expand Down

0 comments on commit 85e0be2

Please sign in to comment.