summaryrefslogtreecommitdiffstats
path: root/lib/private/Repair.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-05-02 09:17:20 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-05-02 09:17:20 +0200
commitb0211a54c43187602dde314a3ec990af11595190 (patch)
treee120fc9fa81ae6079c30dd08b5b6f3d5c7073220 /lib/private/Repair.php
parentf91e5f87d2acfd0f2505e7d581d414efcc6c5f6e (diff)
downloadnextcloud-server-b0211a54c43187602dde314a3ec990af11595190.tar.gz
nextcloud-server-b0211a54c43187602dde314a3ec990af11595190.zip
Repair steps no longer implement the Emitter interface
Diffstat (limited to 'lib/private/Repair.php')
-rw-r--r--lib/private/Repair.php11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/private/Repair.php b/lib/private/Repair.php
index 590b0bee721..5d10cd582f0 100644
--- a/lib/private/Repair.php
+++ b/lib/private/Repair.php
@@ -73,7 +73,6 @@ class Repair implements IOutput{
* Run a series of repair steps for common problems
*/
public function run() {
- $self = $this;
if (count($this->repairSteps) === 0) {
$this->emit('\OC\Repair', 'info', array('No repair steps available'));
return;
@@ -82,16 +81,6 @@ class Repair implements IOutput{
foreach ($this->repairSteps as $step) {
$this->currentStep = $step->getName();
$this->emit('\OC\Repair', 'step', [$this->currentStep]);
-
- if ($step instanceof Emitter) {
- $step->listen('\OC\Repair', 'warning', function ($description) use ($self) {
- $self->emit('\OC\Repair', 'warning', array($description));
- });
- $step->listen('\OC\Repair', 'info', function ($description) use ($self) {
- $self->emit('\OC\Repair', 'info', array($description));
- });
- }
-
$step->run($this);
}
}