Clean dead code

This commit is contained in:
Laurent Destailleur 2021-05-17 08:49:31 +02:00
parent ac95302fa7
commit 8dc6241aee
2 changed files with 2 additions and 4 deletions

View File

@ -183,7 +183,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers
$this->error = "ErrorLDAP ".$ldap->error; $this->error = "ErrorLDAP ".$ldap->error;
} }
} }
} elseif ($action == 'USER_SETINGROUP') { /*} elseif ($action == 'USER_SETINGROUP') {
dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id);
if (!empty($conf->global->LDAP_SYNCHRO_ACTIVE) && $conf->global->LDAP_SYNCHRO_ACTIVE === 'dolibarr2ldap') { if (!empty($conf->global->LDAP_SYNCHRO_ACTIVE) && $conf->global->LDAP_SYNCHRO_ACTIVE === 'dolibarr2ldap') {
$ldap = new Ldap(); $ldap = new Ldap();
@ -250,7 +250,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers
if ($result < 0) { if ($result < 0) {
$this->error = "ErrorLDAP ".$ldap->error; $this->error = "ErrorLDAP ".$ldap->error;
} }
} } */
} elseif ($action == 'USERGROUP_CREATE') { } elseif ($action == 'USERGROUP_CREATE') {
// Groupes // Groupes
dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id);

View File

@ -119,8 +119,6 @@ class InterfaceMyModuleTriggers extends DolibarrTriggers
//case 'USER_NEW_PASSWORD': //case 'USER_NEW_PASSWORD':
//case 'USER_ENABLEDISABLE': //case 'USER_ENABLEDISABLE':
//case 'USER_DELETE': //case 'USER_DELETE':
//case 'USER_SETINGROUP':
//case 'USER_REMOVEFROMGROUP':
// Actions // Actions
//case 'ACTION_MODIFY': //case 'ACTION_MODIFY':