From adf2ff00426e70fde02c8d7b2b5aea76fdc1f04c Mon Sep 17 00:00:00 2001 From: Markus Opolka Date: Fri, 4 Oct 2024 15:17:13 +0200 Subject: [PATCH] Remove unused setFormat - It's not planned to add any new formats and the YAML format is hardcoded in many places --- application/controllers/EditController.php | 2 -- library/Toplevelview/Model/View.php | 11 ----------- 2 files changed, 13 deletions(-) diff --git a/application/controllers/EditController.php b/application/controllers/EditController.php index bf25d15..12f7a28 100644 --- a/application/controllers/EditController.php +++ b/application/controllers/EditController.php @@ -74,8 +74,6 @@ public function indexAction() $view = $c->loadByName($name); } - $view->setFormat($c::FORMAT_YAML); - $this->view->form = $form = new EditForm(); $form->setViewConfig($c); $form->setViews($view); diff --git a/library/Toplevelview/Model/View.php b/library/Toplevelview/Model/View.php index bb3d90b..2a65516 100644 --- a/library/Toplevelview/Model/View.php +++ b/library/Toplevelview/Model/View.php @@ -200,17 +200,6 @@ public function getTextChecksum(): string return $this->textChecksum; } - /** - * setFormat sets the format for this View - * @param string $format Format for this view (e.g. 'yml') - * @return $this - */ - public function setFormat($format) - { - $this->format = $format; - return $this; - } - /** * getFormat returns the View's format */