summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/insertables/CombinedInsertablesSuggester.php')
-rw-r--r--MLEB/Translate/insertables/CombinedInsertablesSuggester.php29
1 files changed, 0 insertions, 29 deletions
diff --git a/MLEB/Translate/insertables/CombinedInsertablesSuggester.php b/MLEB/Translate/insertables/CombinedInsertablesSuggester.php
deleted file mode 100644
index 5f3c468a..00000000
--- a/MLEB/Translate/insertables/CombinedInsertablesSuggester.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-/**
- * A class to combine multiple insertables suggesters.
- */
-class CombinedInsertablesSuggester implements InsertablesSuggester {
-
- /**
- * @var InsertablesSuggester[]
- */
- protected $suggesters = [];
-
- /**
- * @param InsertablesSuggester[] $suggesters Array of InsertablesSuggester objects to combine.
- */
- public function __construct( $suggesters = [] ) {
- $this->suggesters = $suggesters;
- }
-
- public function getInsertables( $text ) {
- $insertables = [];
- foreach ( $this->suggesters as $suggester ) {
- $new = $suggester->getInsertables( $text );
- $insertables = array_merge( $insertables, $new );
- }
-
- return array_unique( $insertables, SORT_REGULAR );
- }
-}