From b172c3161f00a697140c226c3ed0993c8a9e0e4d Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Wed, 20 Jul 2022 15:15:33 +0800 Subject: Fix unused-but-set-variable warnings These are essentially dead code... Test: presubmit Bug: 197240255 Change-Id: If36fa244990cb7d101fce57bcd5d8115f8722064 --- tools/aapt/ResourceTable.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'tools/aapt/ResourceTable.cpp') diff --git a/tools/aapt/ResourceTable.cpp b/tools/aapt/ResourceTable.cpp index b9de11b0026b..47750fc11a6e 100644 --- a/tools/aapt/ResourceTable.cpp +++ b/tools/aapt/ResourceTable.cpp @@ -2970,14 +2970,6 @@ status_t ResourceTable::flatten(Bundle* bundle, const sp& } e->setNameIndex(keyStrings.add(e->getName(), true)); - // If this entry has no values for other configs, - // and is the default config, then it is special. Otherwise - // we want to add it with the config info. - ConfigDescription* valueConfig = NULL; - if (N != 1 || config == nullConfig) { - valueConfig = &config; - } - status_t err = e->prepareFlatten(&valueStrings, this, &configTypeName, &config); if (err != NO_ERROR) { -- cgit v1.2.3-59-g8ed1b