From 3720c9ea1c7edef9e9b86159207fff6fcb0bf1d5 Mon Sep 17 00:00:00 2001 From: Adrien Loison Date: Fri, 4 Sep 2015 11:37:44 -0700 Subject: [PATCH] Remove duplicated method --- src/Spout/Writer/XLSX/Writer.php | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/Spout/Writer/XLSX/Writer.php b/src/Spout/Writer/XLSX/Writer.php index b75628f..5927884 100644 --- a/src/Spout/Writer/XLSX/Writer.php +++ b/src/Spout/Writer/XLSX/Writer.php @@ -27,9 +27,6 @@ class Writer extends AbstractMultiSheetsWriter /** @var bool Whether inline or shared strings should be used - inline string is more memory efficient */ protected $shouldUseInlineStrings = true; - /** @var bool Whether new sheets should be automatically created when the max rows limit per sheet is reached */ - protected $shouldCreateNewSheetsAutomatically = true; - /** @var Internal\Workbook The workbook for the XLSX file */ protected $book; @@ -65,22 +62,6 @@ class Writer extends AbstractMultiSheetsWriter return $this; } - /** - * Sets whether new sheets should be automatically created when the max rows limit per sheet is reached. - * This must be set before opening the writer. - * - * @param bool $shouldCreateNewSheetsAutomatically Whether new sheets should be automatically created when the max rows limit per sheet is reached - * @return Writer - * @throws \Box\Spout\Writer\Exception\WriterAlreadyOpenedException If the writer was already opened - */ - public function setShouldCreateNewSheetsAutomatically($shouldCreateNewSheetsAutomatically) - { - $this->throwIfWriterAlreadyOpened('Writer must be configured before opening it.'); - - $this->shouldCreateNewSheetsAutomatically = $shouldCreateNewSheetsAutomatically; - return $this; - } - /** * Configures the write and sets the current sheet pointer to a new sheet. *