Skip to content

Commit a94ee02

Browse files
Dead code for inveotry sync has been removed (#548)
1 parent d58a944 commit a94ee02

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

app/code/Meta/Catalog/Model/Product/Feed/Builder.php

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,6 @@ class Builder
141141
*/
142142
private $uploadMethod;
143143

144-
/**
145-
* @var bool
146-
*/
147-
private $inventoryOnly = false;
148-
149144
/**
150145
* @var SystemConfig
151146
*/
@@ -227,18 +222,6 @@ public function setUploadMethod($uploadMethod)
227222
return $this;
228223
}
229224

230-
/**
231-
* Set inventory only
232-
*
233-
* @param bool $inventoryOnly
234-
* @return $this
235-
*/
236-
public function setInventoryOnly($inventoryOnly)
237-
{
238-
$this->inventoryOnly = $inventoryOnly;
239-
return $this;
240-
}
241-
242225
/**
243226
* Get default brand
244227
*
@@ -762,14 +745,6 @@ public function buildProductEntry(Product $product)
762745
$this->productIdentifier->getProductIDOtherThanRetailerId($product)
763746
);
764747

765-
if ($this->inventoryOnly) {
766-
return [
767-
self::ATTR_RETAILER_ID => $retailerId,
768-
self::ATTR_AVAILABILITY => $inventory->getAvailability(),
769-
self::ATTR_INVENTORY => $inventory->getInventory(),
770-
];
771-
}
772-
773748
$title = $product->getName();
774749
$productTitle = $this->trimAttribute(self::ATTR_NAME, $title);
775750

@@ -982,10 +957,6 @@ public function getHeaderFields()
982957
$headerFields[] = self::ATTR_UNSUPPORTED_PRODUCT_DATA;
983958
}
984959

985-
if ($this->inventoryOnly) {
986-
return [self::ATTR_RETAILER_ID, self::ATTR_AVAILABILITY, self::ATTR_INVENTORY];
987-
}
988-
989960
return $headerFields;
990961
}
991962

0 commit comments

Comments
 (0)