diff --git a/tools/aapt/AaptAssets.cpp b/tools/aapt/AaptAssets.cpp index cbd8480efc120..c1cfd0b5f1e77 100644 --- a/tools/aapt/AaptAssets.cpp +++ b/tools/aapt/AaptAssets.cpp @@ -388,10 +388,6 @@ void AaptLocaleValue::writeTo(ResTable_config* out) const { if (script[0]) { memcpy(out->localeScript, script, sizeof(out->localeScript)); - out->localeScriptWasComputed = false; - } else { - out->computeScript(); - out->localeScriptWasComputed = true; } if (variant[0]) { diff --git a/tools/aapt2/Locale.cpp b/tools/aapt2/Locale.cpp index 12f56fc11226b..be576613b9b20 100644 --- a/tools/aapt2/Locale.cpp +++ b/tools/aapt2/Locale.cpp @@ -268,10 +268,6 @@ void LocaleValue::writeTo(ResTable_config* out) const { if (script[0]) { memcpy(out->localeScript, script, sizeof(out->localeScript)); - out->localeScriptWasComputed = false; - } else { - out->computeScript(); - out->localeScriptWasComputed = true; } if (variant[0]) {