Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove commented code #16891

Merged
merged 2 commits into from
Jul 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions app/code/Magento/Backend/Block/Dashboard/Bar.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ public function getTotals()
*/
public function addTotal($label, $value, $isQuantity = false)
{
/*if (!$isQuantity) {
$value = $this->format($value);
$decimals = substr($value, -2);
$value = substr($value, 0, -2);
} else {
$value = ($value != '')?$value:0;
$decimals = '';
}*/
if (!$isQuantity) {
$value = $this->format($value);
}
Expand Down
1 change: 0 additions & 1 deletion app/code/Magento/Catalog/Setup/InstallData.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ public function install(ModuleDataSetupInterface $setup, ModuleContextInterface
// update attributes group and sort
$attributes = [
'custom_design' => ['group' => 'design', 'sort' => 10],
// 'custom_design_apply' => array('group' => 'design', 'sort' => 20),
'custom_design_from' => ['group' => 'design', 'sort' => 30],
'custom_design_to' => ['group' => 'design', 'sort' => 40],
'page_layout' => ['group' => 'design', 'sort' => 50],
Expand Down
6 changes: 0 additions & 6 deletions app/code/Magento/Newsletter/Block/Adminhtml/Template/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@ public function getModel()
*/
protected function _prepareLayout()
{
// Load Wysiwyg on demand and Prepare layout
// $block = $this->getLayout()->getBlock('head');
// if ($this->_wysiwygConfig->isEnabled() && $block) {
// $block->setCanLoadTinyMce(true);
// }

$this->getToolbar()->addChild(
'back_button',
\Magento\Backend\Block\Widget\Button::class,
Expand Down
5 changes: 0 additions & 5 deletions app/code/Magento/Review/Block/Adminhtml/Add/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,6 @@ protected function _prepareForm()

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

/*$gridFieldset = $form->addFieldset('add_review_grid', array('legend' => __('Please select a product')));
$gridFieldset->addField('products_grid', 'note', array(
'text' => $this->getLayout()->createBlock(\Magento\Review\Block\Adminhtml\Product\Grid::class)->toHtml(),
));*/

$form->setMethod('post');
$form->setUseContainer(true);
$form->setId('edit_form');
Expand Down
7 changes: 0 additions & 7 deletions app/code/Magento/Sales/Model/Order/Creditmemo.php
Original file line number Diff line number Diff line change
Expand Up @@ -584,13 +584,6 @@ public function getCommentsCollection($reload = false)
{
$collection = $this->_commentCollectionFactory->create()->setCreditmemoFilter($this->getId())
->setCreatedAtOrder();
//
// $this->setComments($comments);
// /**
// * When credit memo created with adding comment,
// * comments collection must be loaded before we added this comment.
// */
// $this->getComments()->load();

if ($this->getId()) {
foreach ($collection as $comment) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@
// @codingStandardsIgnoreFile

?>
<?php /*$_source = $block->getSource(); ?>
<?php $block->setPriceDataObject($_source) ?>
<?php if ($_source): ?>
<table width="100%">
<?= $block->getChildHtml('main') ?>
<?= $block->getChildHtml('footer') ?>
</table>
<?php endif;*/ ?>
<table class="data-table admin__table-secondary order-subtotal-table">
<?php $_totals = $block->getTotals('footer')?>

Expand Down