From 0caf791d93a529e7e1194e58de0a19cbf859bdd7 Mon Sep 17 00:00:00 2001 From: abhishek-webkul <84142535+abhishek-webkul@users.noreply.github.com> Date: Wed, 7 Feb 2024 17:24:27 +0530 Subject: [PATCH] Remove Unused method Product::getAllServiceProducts() --- classes/Product.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/classes/Product.php b/classes/Product.php index 10c571359..f0145ee0e 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -1414,22 +1414,6 @@ class ProductCore extends ObjectModel return $result; } - public static function getAllServiceProducts($activeOnly = true, $idLang = null) - { - if (!$idLang) { - $idLang = Context::getContext()->language->id; - } - - $sql = 'SELECT p.*, pl.* - FROM `'._DB_PREFIX_.'product` p - LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON - (pl.`id_product` = p.`id_product` AND pl.`id_lang` = '.(int) $idLang.') - WHERE p.`booking_product` = 0'.($activeOnly ? ' AND p.`active` = 1' : '').' - ORDER BY p.`id_product`'; - - return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql); - } - public function getAvailableServiceProductsCategories($id_lang, $front = false, $active = true, Context $context = null) { if (!$context) {