Skip to content

Commit

Permalink
Remove unused setFormat
Browse files Browse the repository at this point in the history
- It's not planned to add any new formats and the YAML format is hardcoded in
  many places
  • Loading branch information
martialblog committed Oct 4, 2024
1 parent 927e939 commit adf2ff0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
2 changes: 0 additions & 2 deletions application/controllers/EditController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
11 changes: 0 additions & 11 deletions library/Toplevelview/Model/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit adf2ff0

Please sign in to comment.