From f485ebc2cf07821764198dbd322cf6b9a9f3355f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 31 Oct 2020 12:56:30 +0100 Subject: [PATCH] Removed dead code --- .../adherents/class/adherent_type.class.php | 38 +------------------ 1 file changed, 1 insertion(+), 37 deletions(-) diff --git a/htdocs/adherents/class/adherent_type.class.php b/htdocs/adherents/class/adherent_type.class.php index 94bf34208ff..e31d1e8fbc7 100644 --- a/htdocs/adherents/class/adherent_type.class.php +++ b/htdocs/adherents/class/adherent_type.class.php @@ -707,7 +707,7 @@ class AdherentType extends CommonObject */ public function initAsSpecimen() { - global $conf, $user, $langs; + global $user; // Initialise parametres $this->id = 0; @@ -735,46 +735,10 @@ class AdherentType extends CommonObject */ public function getMailOnValid() { - global $conf; - if (!empty($this->mail_valid) && trim(dol_htmlentitiesbr_decode($this->mail_valid))) { return $this->mail_valid; } return ''; } - - /** - * getMailOnSubscription - * - * @return string Return mail content of type or empty - */ - public function getMailOnSubscription() - { - global $conf; - - // mail_subscription not defined so never used - if (!empty($this->mail_subscription) && trim(dol_htmlentitiesbr_decode($this->mail_subscription))) { // Property not yet defined - return $this->mail_subscription; - } - - return ''; - } - - /** - * getMailOnResiliate - * - * @return string Return mail model content of type or empty - */ - public function getMailOnResiliate() - { - global $conf; - - // NOTE mail_resiliate not defined so never used - if (!empty($this->mail_resiliate) && trim(dol_htmlentitiesbr_decode($this->mail_resiliate))) { // Property not yet defined - return $this->mail_resiliate; - } - - return ''; - } }