Skip to content

Commit

Permalink
remove unecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Jul 27, 2023
1 parent 60e77e8 commit eecf9a4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions code/Extension/ControllerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ public function onAfterInit()
*/
public function beforeCallActionHandler($request, $action)
{
// This could be called twice
// TODO: check if we can remove this safely
if ($this->owner->beforeCallActionHandlerCalled) {
return;
}

// If we don't have an action, getViewer will be called immediatly
// If we have custom routes, request action is different than action
$allParams = $request->allParams();
Expand All @@ -96,8 +90,6 @@ public function beforeCallActionHandler($request, $action)
}
$timeData->startMeasure("action", get_class($this->owner) . " action $action");
});

$this->owner->beforeCallActionHandlerCalled = true;
}

/**
Expand Down

0 comments on commit eecf9a4

Please sign in to comment.