Skip to content

Commit af8925d

Browse files
author
Stanislav Idolov
authored
ENGCOM-2389: Remove commented code #16891
2 parents 5de61c3 + f1dd8e3 commit af8925d

File tree

6 files changed

+0
-35
lines changed

6 files changed

+0
-35
lines changed

app/code/Magento/Backend/Block/Dashboard/Bar.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,6 @@ public function getTotals()
3838
*/
3939
public function addTotal($label, $value, $isQuantity = false)
4040
{
41-
/*if (!$isQuantity) {
42-
$value = $this->format($value);
43-
$decimals = substr($value, -2);
44-
$value = substr($value, 0, -2);
45-
} else {
46-
$value = ($value != '')?$value:0;
47-
$decimals = '';
48-
}*/
4941
if (!$isQuantity) {
5042
$value = $this->format($value);
5143
}

app/code/Magento/Catalog/Setup/InstallData.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ public function install(ModuleDataSetupInterface $setup, ModuleContextInterface
124124
// update attributes group and sort
125125
$attributes = [
126126
'custom_design' => ['group' => 'design', 'sort' => 10],
127-
// 'custom_design_apply' => array('group' => 'design', 'sort' => 20),
128127
'custom_design_from' => ['group' => 'design', 'sort' => 30],
129128
'custom_design_to' => ['group' => 'design', 'sort' => 40],
130129
'page_layout' => ['group' => 'design', 'sort' => 50],

app/code/Magento/Newsletter/Block/Adminhtml/Template/Edit.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@ public function getModel()
6969
*/
7070
protected function _prepareLayout()
7171
{
72-
// Load Wysiwyg on demand and Prepare layout
73-
// $block = $this->getLayout()->getBlock('head');
74-
// if ($this->_wysiwygConfig->isEnabled() && $block) {
75-
// $block->setCanLoadTinyMce(true);
76-
// }
77-
7872
$this->getToolbar()->addChild(
7973
'back_button',
8074
\Magento\Backend\Block\Widget\Button::class,

app/code/Magento/Review/Block/Adminhtml/Add/Form.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,6 @@ protected function _prepareForm()
142142

143143
$fieldset->addField('product_id', 'hidden', ['name' => 'product_id']);
144144

145-
/*$gridFieldset = $form->addFieldset('add_review_grid', array('legend' => __('Please select a product')));
146-
$gridFieldset->addField('products_grid', 'note', array(
147-
'text' => $this->getLayout()->createBlock(\Magento\Review\Block\Adminhtml\Product\Grid::class)->toHtml(),
148-
));*/
149-
150145
$form->setMethod('post');
151146
$form->setUseContainer(true);
152147
$form->setId('edit_form');

app/code/Magento/Sales/Model/Order/Creditmemo.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -584,13 +584,6 @@ public function getCommentsCollection($reload = false)
584584
{
585585
$collection = $this->_commentCollectionFactory->create()->setCreditmemoFilter($this->getId())
586586
->setCreatedAtOrder();
587-
//
588-
// $this->setComments($comments);
589-
// /**
590-
// * When credit memo created with adding comment,
591-
// * comments collection must be loaded before we added this comment.
592-
// */
593-
// $this->getComments()->load();
594587

595588
if ($this->getId()) {
596589
foreach ($collection as $comment) {

app/code/Magento/Sales/view/adminhtml/templates/order/totals.phtml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@
77
// @codingStandardsIgnoreFile
88

99
?>
10-
<?php /*$_source = $block->getSource(); ?>
11-
<?php $block->setPriceDataObject($_source) ?>
12-
<?php if ($_source): ?>
13-
<table width="100%">
14-
<?= $block->getChildHtml('main') ?>
15-
<?= $block->getChildHtml('footer') ?>
16-
</table>
17-
<?php endif;*/ ?>
1810
<table class="data-table admin__table-secondary order-subtotal-table">
1911
<?php $_totals = $block->getTotals('footer')?>
2012

0 commit comments

Comments
 (0)