[NFC] Remove unused variable
authorVitaly Buka <vitalybuka@google.com>
Mon, 14 Jun 2021 17:56:40 +0000 (10:56 -0700)
committerVitaly Buka <vitalybuka@google.com>
Mon, 14 Jun 2021 17:57:26 +0000 (10:57 -0700)
To fix 'set but not used' warning on sanitizer-x86_64-linux-android bot.

clang/lib/Format/WhitespaceManager.cpp

index 222c4c4..b079eac 100644 (file)
@@ -1068,9 +1068,6 @@ void WhitespaceManager::alignArrayInitializersLeftJustified(
     Changes[CellIter->Index].Spaces = CellDescs.InitialSpaces;
   ++CellIter;
   for (auto i = 1U; i < CellDescs.CellCount; i++, ++CellIter) {
-    unsigned NetWidth = 0U;
-    if (isSplitCell(*CellIter))
-      NetWidth = getNetWidth(Cells.begin(), CellIter, CellDescs.InitialSpaces);
     auto MaxNetWidth = getMaximumNetWidth(
         Cells.begin(), CellIter, CellDescs.InitialSpaces, CellDescs.CellCount);
     auto ThisNetWidth =