From 80b53397f4b606bb2b087f8a5bae240e6d8247e8 Mon Sep 17 00:00:00 2001 From: Philippe Damen Date: Fri, 2 Feb 2024 16:08:46 +0100 Subject: [PATCH] remove obsolete function --- src/Translations/TranslationManager.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/Translations/TranslationManager.php b/src/Translations/TranslationManager.php index 37d5f99..8d21f34 100644 --- a/src/Translations/TranslationManager.php +++ b/src/Translations/TranslationManager.php @@ -36,20 +36,6 @@ public function createTranslationFiles(Collection $translations, string $locale) } } - public function checkTranslations(Collection $translations, string $locale) : bool - { - $localeTranslations = collect($this->getTranslations($locale)); - - $missingKeys = $translations->dot()->diffAssoc($localeTranslations->dot()); - $extraKeys = $localeTranslations->dot()->diffAssoc($translations->dot()); - - if ($missingKeys->isNotEmpty() || $extraKeys->isNotEmpty()) { - return false; - } - - return true; - } - protected function getVendorTranslations(string $locale) : Collection { if (! $this->filesystem->exists(lang_path('vendor'))) {