From ae608c3bb74ec7f4049034c8e05d405cebded978 Mon Sep 17 00:00:00 2001 From: IC-Nicolas Date: Sun, 19 Nov 2023 00:47:23 +0100 Subject: [PATCH] Unused method in Dolibarr (#26737) --- .../class/fournisseur.commande.class.php | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index 4ff8bfa6fdd..3a333b79d32 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -2371,36 +2371,6 @@ class CommandeFournisseur extends CommonOrder } } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps - /** - * Get list of order methods - * - * @return int 0 if OK, <0 if KO - */ - public function get_methodes_commande() - { - // phpcs:enable - $sql = "SELECT rowid, libelle"; - $sql .= " FROM ".$this->db->prefix()."c_input_method"; - $sql .= " WHERE active = 1"; - - $resql = $this->db->query($sql); - if ($resql) { - $i = 0; - $num = $this->db->num_rows($resql); - $this->methodes_commande = array(); - while ($i < $num) { - $row = $this->db->fetch_row($resql); - - $this->methodes_commande[$row[0]] = $row[1]; - - $i++; - } - return 0; - } else { - return -1; - } - } /** * Return array of dispatched lines waiting to be approved for this order