unnecessary code removed

This commit is contained in:
Julien Chanséaume
2014-04-28 12:15:08 +02:00
parent 3bacb0a917
commit 6553c6ad10
3 changed files with 1 additions and 31 deletions

View File

@@ -17,18 +17,4 @@ use Thelia\Model\Base\ProductPriceQuery as BaseProductPriceQuery;
class ProductPriceQuery extends BaseProductPriceQuery
{
public function findByCurrencyAndProductSaleElements($currencyId, $productSaleElementsId)
{
ArticleQuery::create()->select(array('Id', 'Name'))->find();
$currencyId = $this->getCurrency();
if (null !== $currencyId) {
$currency = CurrencyQuery::create()->findOneById($currencyId);
if (null === $currency) {
throw new \InvalidArgumentException('Cannot found currency id: `' . $currency . '` in product_sale_elements loop');
}
}
}
} // ProductPriceQuery

View File

@@ -41,14 +41,6 @@ class ProductPriceTools
$this->promoPrice = $promoPrice;
}
/**
* @param float $price
*/
public function setPrice($price)
{
$this->price = $price;
}
/**
* @return float
*/
@@ -57,14 +49,6 @@ class ProductPriceTools
return $this->price;
}
/**
* @param float $promoPrice
*/
public function setPromoPrice($promoPrice)
{
$this->promoPrice = $promoPrice;
}
/**
* @return float
*/