Skip to content

Commit

Permalink
Remove line vardumps
Browse files Browse the repository at this point in the history
  • Loading branch information
inxomnyaa committed Dec 4, 2020
1 parent 67362a6 commit 0e9dc26
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/xenialdan/MagicWE2/task/AsyncRevertTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,17 @@ public function __construct(UUID $sessionUUID, RevertClipboard $clipboard, $type
public function onRun(): void
{
$this->publishProgress([0, "Start"]);
var_dump(__LINE__);
/** @var RevertClipboard $clipboard */
$clipboard = unserialize($this->clipboard/*, ['allowed_classes' => [RevertClipboard::class]]*/);//TODO test pm4
$totalCount = count($clipboard->blocksAfter);
var_dump(__LINE__);
$manager = $clipboard::getChunkManager($clipboard->chunks);
$oldBlocks = [];
var_dump(__LINE__);
if ($this->type === self::TYPE_UNDO)
$oldBlocks = iterator_to_array($this->undoChunks($manager, $clipboard));
var_dump(__LINE__);
if ($this->type === self::TYPE_REDO)
$oldBlocks = iterator_to_array($this->redoChunks($manager, $clipboard));
var_dump(__LINE__);
$chunks = $manager->getChunks();
$this->setResult(compact("chunks", "oldBlocks", "totalCount"));
var_dump(__LINE__);
}

/**
Expand All @@ -78,7 +72,6 @@ public function onRun(): void
private function undoChunks(AsyncChunkManager $manager, RevertClipboard $clipboard): Generator
{
$count = count($clipboard->blocksAfter);
var_dump(__LINE__);
$changed = 0;
$this->publishProgress([0, "Reverted $changed blocks out of $count"]);
//$block is "data" array
Expand Down

0 comments on commit 0e9dc26

Please sign in to comment.