Permalink
Browse files

MDL-35538 forum: take rid of forum_get_separate_modules()

100% incorrect function and not used in codebase at all.
  • Loading branch information...
1 parent a3ab18c commit ed4f7cccc360e9bf707c06a98945cf97cee06a5b @stronk7 stronk7 committed Sep 19, 2012
Showing with 0 additions and 21 deletions.
  1. +0 −21 mod/forum/lib.php
View
@@ -7006,27 +7006,6 @@ function forum_get_post_actions() {
}
/**
- * this function returns all the separate forum ids, given a courseid
- *
- * @global object
- * @global object
- * @param int $courseid
- * @return array
- */
-function forum_get_separate_modules($courseid) {
-
- global $CFG,$DB;
- $forummodule = $DB->get_record("modules", array("name" => "forum"));
-
- $sql = 'SELECT f.id, f.id FROM {forum} f, {course_modules} cm WHERE
- f.id = cm.instance AND cm.module =? AND cm.visible = 1 AND cm.course = ?
- AND cm.groupmode ='.SEPARATEGROUPS;
-
- return $DB->get_records_sql($sql, array($forummodule->id, $courseid));
-
-}
-
-/**
* @global object
* @global object
* @global object

0 comments on commit ed4f7cc

Please sign in to comment.