From 6cf97a7317869111c0ff1d5510162d97f4701628 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 3 Aug 2012 14:18:48 +0200 Subject: [PATCH] Clean dead code --- htdocs/compta/facture/class/facture.class.php | 14 -------------- htdocs/core/class/commonobject.class.php | 5 ----- 2 files changed, 19 deletions(-) diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index f8c0872c20e..5999f1fd41a 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -1930,16 +1930,6 @@ class Facture extends CommonInvoice $rangtouse = $rangmax + 1; } - // TODO A virer - // Anciens indicateurs: $price, $remise (a ne plus utiliser) - //$price = $pu; - //$remise = 0; - //if ($remise_percent > 0) - //{ - // $remise = round(($pu * $remise_percent / 100),2); - // $price = ($pu - $remise); - //} - $product_type=$type; if ($fk_product) { @@ -1980,10 +1970,6 @@ class Facture extends CommonInvoice $this->line->fk_fournprice = $fk_fournprice; $this->line->pa_ht = $pa_ht; - // TODO Ne plus utiliser - //$this->line->price=($this->type==2?-1:1)*abs($price); - //$this->line->remise=($this->type==2?-1:1)*abs($remise); - $result=$this->line->insert(); if ($result > 0) { diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index f08e8a62331..973f4882654 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -2189,11 +2189,6 @@ abstract class CommonObject { $nb=0; - //if (empty($this->table_element_line)) dol_print_error('Call hasPredefinedProducts on a class with no table_element_line property'); - - //$sql ='SELECT COUNT(rowid) FROM '.MAIN_DB_PREFIX.$this->table_element_line; - //$sql.='WHERE ...'; - //var_dump($this->lines); foreach($this->lines as $key => $val) { $qualified=0;