File tree Expand file tree Collapse file tree 2 files changed +0
-4
lines changed
app/code/Magento/Catalog/Controller/Product/Compare Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ public function execute()
31
31
32
32
try {
33
33
$ items ->clear ();
34
- $ items ->removeCompareList ($ this ->_customerSession ->getCustomerId ());
35
34
$ this ->messageManager ->addSuccessMessage (__ ('You cleared the comparison list. ' ));
36
35
$ this ->_objectManager ->get (\Magento \Catalog \Helper \Product \Compare::class)->calculate ();
37
36
} catch (\Magento \Framework \Exception \LocalizedException $ e ) {
Original file line number Diff line number Diff line change @@ -50,9 +50,6 @@ public function execute()
50
50
$ helper = $ this ->_objectManager ->get (\Magento \Catalog \Helper \Product \Compare::class);
51
51
if ($ item ->getId ()) {
52
52
$ item ->delete ();
53
- /** @var Collection $items */
54
- $ items = $ this ->_itemCollectionFactory ->create ();
55
- $ items ->removeCompareList ($ this ->_customerSession ->getCustomerId ());
56
53
$ productName = $ this ->_objectManager ->get (\Magento \Framework \Escaper::class)
57
54
->escapeHtml ($ product ->getName ());
58
55
$ this ->messageManager ->addSuccessMessage (
You can’t perform that action at this time.
0 commit comments