function can_be_listed not used anywhere
authorDan Marsden <dan@danmarsden.com>
Thu, 13 Aug 2015 09:54:37 +0000 (21:54 +1200)
committerDan Marsden <dan@danmarsden.com>
Thu, 13 Aug 2015 09:54:49 +0000 (21:54 +1200)
locallib.php

index e33e336..9a2296b 100644 (file)
@@ -45,7 +45,6 @@ class attendance_permissions {
     private $canmanagetemp; // Can manage temporary users.
     private $canchangepreferences;
     private $canexport;
-    private $canbelisted;
     private $canaccessallgroups;
 
     private $cm;
@@ -118,14 +117,6 @@ class attendance_permissions {
         return $this->canexport;
     }
 
-    public function can_be_listed() {
-        if (is_null($this->canbelisted)) {
-            $this->canbelisted = has_capability('mod/attendance:canbelisted', $this->context, null, false);
-        }
-
-        return $this->canbelisted;
-    }
-
     public function can_access_all_groups() {
         if (is_null($this->canaccessallgroups)) {
             $this->canaccessallgroups = has_capability('moodle/site:accessallgroups', $this->context);