diff --git a/module/common/control.php b/module/common/control.php index 53ba5f7e3d..45ed8bd04a 100644 --- a/module/common/control.php +++ b/module/common/control.php @@ -236,22 +236,6 @@ class common extends control return $changes; } - /** - * Save the id of the last browse product to session. - * - * @access public - * @return string - */ - public static function saveProductState($productID, $defaultProductID) - { - global $app; - if($productID > 0) $app->session->set('product', (int)$productID); - if($productID == 0 and $app->cookie->lastProduct) $app->session->set('product', (int)$app->cookie->lastProduct); - if($productID == 0 and $app->session->product == '') $app->session->set('product', $defaultProductID); - return $app->session->product; - } - - /** * Get the full url of the system. *