Skip to content

Commit 4cc29a4

Browse files
authored
remove unused adminhtml permission files (#5655)
1 parent 5d0cc85 commit 4cc29a4

17 files changed

Lines changed: 0 additions & 580 deletions

File tree

.phpstan.dist.baselines/class.notFound.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,5 @@
1111
'count' => 1,
1212
'path' => __DIR__ . '/../app/code/core/Mage/Adminhtml/Block/Api/Users.php',
1313
];
14-
$ignoreErrors[] = [
15-
'rawMessage' => 'Call to method getCollection() on an unknown class Mage_Permissions_Model_Users.',
16-
'count' => 1,
17-
'path' => __DIR__ . '/../app/code/core/Mage/Adminhtml/Block/Permissions/Grid/User.php',
18-
];
19-
$ignoreErrors[] = [
20-
'rawMessage' => 'Call to method getCollection() on an unknown class Mage_Permissions_Model_Roles.',
21-
'count' => 1,
22-
'path' => __DIR__ . '/../app/code/core/Mage/Adminhtml/Block/Permissions/Usernroles.php',
23-
];
24-
$ignoreErrors[] = [
25-
'rawMessage' => 'Call to method getCollection() on an unknown class Mage_Permissions_Model_Users.',
26-
'count' => 1,
27-
'path' => __DIR__ . '/../app/code/core/Mage/Adminhtml/Block/Permissions/Usernroles.php',
28-
];
2914

3015
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];

.phpstan.dist.baselines/empty.notAllowed.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,6 @@
166166
'count' => 2,
167167
'path' => __DIR__ . '/../app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Rolesedit.php',
168168
];
169-
$ignoreErrors[] = [
170-
'rawMessage' => 'Construct empty() is not allowed. Use more strict comparison.',
171-
'count' => 1,
172-
'path' => __DIR__ . '/../app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Userroles.php',
173-
];
174169
$ignoreErrors[] = [
175170
'rawMessage' => 'Construct empty() is not allowed. Use more strict comparison.',
176171
'count' => 1,

.phpstan.dist.baselines/equal.notAllowed.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5226,11 +5226,6 @@
52265226
'count' => 3,
52275227
'path' => __DIR__ . '/../app/design/adminhtml/base/default/template/payment/form/ccsave.phtml',
52285228
];
5229-
$ignoreErrors[] = [
5230-
'rawMessage' => 'Loose comparison via "==" between mixed and mixed is not allowed.',
5231-
'count' => 1,
5232-
'path' => __DIR__ . '/../app/design/adminhtml/base/default/template/permissions/userroles.phtml',
5233-
];
52345229
$ignoreErrors[] = [
52355230
'rawMessage' => 'Loose comparison via "==" between int<1, max> and mixed is not allowed.',
52365231
'count' => 1,

.phpstan.dist.baselines/method.notFound.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@
7676
'count' => 1,
7777
'path' => __DIR__ . '/../app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Grid.php',
7878
];
79-
$ignoreErrors[] = [
80-
'rawMessage' => 'Call to an undefined method Mage_Admin_Model_Resource_Roles_User_Collection::setUserFilter().',
81-
'count' => 1,
82-
'path' => __DIR__ . '/../app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Userroles.php',
83-
];
8479
$ignoreErrors[] = [
8580
'rawMessage' => 'Call to an undefined method object::applyLogToCollection().',
8681
'count' => 1,

.phpstan.dist.baselines/missingType.return.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -786,16 +786,6 @@
786786
'count' => 1,
787787
'path' => __DIR__ . '/../app/code/core/Mage/Adminhtml/Block/Page/Header.php',
788788
];
789-
$ignoreErrors[] = [
790-
'rawMessage' => 'Method Mage_Adminhtml_Block_Permissions_Buttons::getUser() has no return type specified.',
791-
'count' => 1,
792-
'path' => __DIR__ . '/../app/code/core/Mage/Adminhtml/Block/Permissions/Buttons.php',
793-
];
794-
$ignoreErrors[] = [
795-
'rawMessage' => 'Method Mage_Adminhtml_Block_Permissions_Edituser::getUser() has no return type specified.',
796-
'count' => 1,
797-
'path' => __DIR__ . '/../app/code/core/Mage/Adminhtml/Block/Permissions/Edituser.php',
798-
];
799789
$ignoreErrors[] = [
800790
'rawMessage' => 'Method Mage_Adminhtml_Block_Permissions_Role_Grid_User::_getUsers() has no return type specified.',
801791
'count' => 1,
@@ -821,16 +811,6 @@
821811
'count' => 1,
822812
'path' => __DIR__ . '/../app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit/Tab/Roles.php',
823813
];
824-
$ignoreErrors[] = [
825-
'rawMessage' => 'Method Mage_Adminhtml_Block_Permissions_Users::getAddNewUrl() has no return type specified.',
826-
'count' => 1,
827-
'path' => __DIR__ . '/../app/code/core/Mage/Adminhtml/Block/Permissions/Users.php',
828-
];
829-
$ignoreErrors[] = [
830-
'rawMessage' => 'Method Mage_Adminhtml_Block_Permissions_Users::getGridHtml() has no return type specified.',
831-
'count' => 1,
832-
'path' => __DIR__ . '/../app/code/core/Mage/Adminhtml/Block/Permissions/Users.php',
833-
];
834814
$ignoreErrors[] = [
835815
'rawMessage' => 'Method Mage_Adminhtml_Block_Promo_Widget_Chooser::getRowClickCallback() has no return type specified.',
836816
'count' => 1,

app/code/core/Mage/Adminhtml/Block/Permissions/Buttons.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212
*/
1313
class Mage_Adminhtml_Block_Permissions_Buttons extends Mage_Adminhtml_Block_Template
1414
{
15-
public function __construct()
16-
{
17-
parent::__construct();
18-
$this->setTemplate('permissions/userinfo.phtml');
19-
}
20-
2115
/**
2216
* @inheritDoc
2317
*/
@@ -104,9 +98,4 @@ public function getDeleteButtonHtml()
10498

10599
return $this->getChildHtml('deleteButton');
106100
}
107-
108-
public function getUser()
109-
{
110-
return Mage::registry('user_data');
111-
}
112101
}

app/code/core/Mage/Adminhtml/Block/Permissions/Edituser.php

Lines changed: 0 additions & 46 deletions
This file was deleted.

app/code/core/Mage/Adminhtml/Block/Permissions/Grid/User.php

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)