From 48bdb6f5063dbba40f28704ec72e13e24706969b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 12 Sep 2011 23:23:53 +0000 Subject: [PATCH] Clean deprecated code --- htdocs/societe/soc.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index 12277db42a3..f2637207840 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -88,21 +88,6 @@ $parameters=array('socid'=>$socid); $reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks $error=$hookmanager->error; $errors=$hookmanager->errors; -// ---------- start deprecated. Must use hook to hook actions. -/*if (method_exists($objcanvas->control,'doActions')) -{ - $objcanvas->doActions($socid); - - if (! empty($objcanvas->error) || (! empty($objcanvas->errors) && sizeof($objcanvas->errors) > 0)) - { - $error=$objcanvas->error; $errors=$objcanvas->errors; - if ($action=='add') { $objcanvas->action='create'; $action='create'; } - if ($action=='update') { $objcanvas->action='edit'; $action='edit'; } - } -}*/ -// ---------- end deprecated. - - if (empty($reshook)) { if ($_POST["getcustomercode"]) @@ -539,7 +524,6 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) } else { - // ----------------------------------------- // When used in standard mode // -----------------------------------------