gecko-dev/intl/locale
Gabriele Svelto 69790bc62e Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

Differential Revision: https://phabricator.services.mozilla.com/D55443

--HG--
extra : moz-landing-system : lando
2019-12-06 09:16:44 +00:00
..
android Bug 1580356 - Remove Fennec (Firefox for Android). r=snorp,mshal 2019-10-04 20:55:11 +00:00
gtk
mac
rust Bug 1581960 - Use fluent-locale-rs for LocaleService::NegotiateLanguages. r=emilio 2019-11-19 23:07:08 +00:00
tests Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
windows Bug 1598656 - Ensure RoUninitialize is not called until after the COMPtr<>s have been released. r=emk 2019-11-25 13:55:05 +00:00
cldr-quotes.inc Bug 1421938 - Implement a mozilla::intl::QuotesForLang utility to return localized quotation marks for a given locale, based on CLDR data. r=emilio 2019-07-08 23:56:12 +00:00
cldr-quotes.pl Bug 1421938 - Implement a mozilla::intl::QuotesForLang utility to return localized quotation marks for a given locale, based on CLDR data. r=emilio 2019-07-08 23:56:12 +00:00
components.conf
DateTimeFormat.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
DateTimeFormat.h
encodingsgroups.properties
language.properties Bug 1583177 - Add ca-valencia, trs to languageNames.ftl and language.properties r=m_kato,fluent-reviewers,Pike 2019-09-27 12:10:19 +00:00
LocaleService.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
LocaleService.h Bug 1597822 - Hook up intl.l10n.pseudo in DOM/chrome. r=jfkthame 2019-11-26 16:41:55 +00:00
moz.build Bug 1581960 - Use fluent-locale-rs for LocaleService::NegotiateLanguages. r=emilio 2019-11-19 23:07:08 +00:00
mozILocaleService.idl
mozIOSPreferences.idl
MozLocale.cpp Bug 1571915 - Switch MozLocale to use unic-langid. r=emilio,jfkthame 2019-11-19 23:04:06 +00:00
MozLocale.h Bug 1571915 - Switch MozLocale to use unic-langid. r=emilio,jfkthame 2019-11-19 23:04:06 +00:00
MozLocaleBindings.h Bug 1581960 - Use fluent-locale-rs for LocaleService::NegotiateLanguages. r=emilio 2019-11-19 23:07:08 +00:00
nsCollation.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
nsCollation.h
nsCollationCID.h
nsCollationFactory.cpp
nsCollationFactory.h
nsICollation.idl Bug 1588260 part 2. Switch nsICollation away from using xpidl [array]. r=peterv,emk 2019-11-11 18:03:42 +00:00
nsLanguageAtomService.cpp Bug 1571915 - Switch MozLocale to use unic-langid. r=emilio,jfkthame 2019-11-19 23:04:06 +00:00
nsLanguageAtomService.h
nsLocaleConstructors.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
nsUConvPropertySearch.cpp
nsUConvPropertySearch.h
OSPreferences.cpp
OSPreferences.h
PluralForm.jsm
props2arrays.py
Quotes.cpp Bug 1571915 - Switch MozLocale to use unic-langid. r=emilio,jfkthame 2019-11-19 23:04:06 +00:00
Quotes.h Bug 1421938 - Implement a mozilla::intl::QuotesForLang utility to return localized quotation marks for a given locale, based on CLDR data. r=emilio 2019-07-08 23:56:12 +00:00