From 88bc385c7f8773ebfae8b2551358079e5a650936 Mon Sep 17 00:00:00 2001 From: thomas-topway-it Date: Thu, 15 Feb 2024 11:30:22 +0400 Subject: [PATCH] removed unused method --- src/GeoJsonPages/GeoJsonContentHandler.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/GeoJsonPages/GeoJsonContentHandler.php b/src/GeoJsonPages/GeoJsonContentHandler.php index 70b6a147..9cbb784b 100644 --- a/src/GeoJsonPages/GeoJsonContentHandler.php +++ b/src/GeoJsonPages/GeoJsonContentHandler.php @@ -5,7 +5,6 @@ namespace Maps\GeoJsonPages; use Content; -use FormatJson; use Maps\MapsFactory; use Maps\Presentation\OutputFacade; use MediaWiki\Content\Renderer\ContentParseParams; @@ -25,11 +24,6 @@ public function makeEmptyContent(): GeoJsonContent { $class = $this->getContentClass(); return new $class( $class::newEmptyContentString() ); } - - public static function newEmptyContentString(): string { - $text = '{"type": "FeatureCollection", "features": []}'; - return FormatJson::encode( FormatJson::parse( $text )->getValue(), true, FormatJson::UTF8_OK ); - } /** * @inheritdoc