Skip to content

Commit

Permalink
Remove deprecated Group::addToGroupByName()
Browse files Browse the repository at this point in the history
Use $member->addToGroupByCode($groupcode) instead
  • Loading branch information
Sean Harvey committed Nov 15, 2012
1 parent d038cd7 commit f122b10
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions security/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,6 @@ public function fieldLabels($includerelations = true) {
return $labels;
}

/**
* @deprecated 2.5
*/
public static function addToGroupByName($member, $groupcode) {
Deprecation::notice('2.5', 'Use $member->addToGroupByCode($groupcode) instead.');

return $member->addToGroupByCode($groupcode);
}

/**
* Get many-many relation to {@link Member},
* including all members which are "inherited" from children groups of this record.
Expand Down Expand Up @@ -323,14 +314,6 @@ public function stageChildren() {
);
}

/**
* @deprecated 3.0 Use getTreeTitle()
*/
public function TreeTitle() {
Deprecation::notice('3.0', 'Use getTreeTitle() instead.');
return $this->getTreeTitle();
}

public function getTreeTitle() {
if($this->hasMethod('alternateTreeTitle')) return $this->alternateTreeTitle();
else return htmlspecialchars($this->Title, ENT_QUOTES);
Expand Down

0 comments on commit f122b10

Please sign in to comment.