Fix lastIndex not used (#7351)

diff --git a/integrations/tensorflow/iree_tf_compiler/TF/SavedModelToIreeABI.cpp b/integrations/tensorflow/iree_tf_compiler/TF/SavedModelToIreeABI.cpp
index 287bc38..0bd0c61 100644
--- a/integrations/tensorflow/iree_tf_compiler/TF/SavedModelToIreeABI.cpp
+++ b/integrations/tensorflow/iree_tf_compiler/TF/SavedModelToIreeABI.cpp
@@ -174,12 +174,10 @@
         json::Array typeRecord;
         typeRecord.push_back(
             json::Value(type == LevelType::List ? "slist" : "stuple"));
-        int lastIndex = 0;
         for (auto &child : children) {
           for (int j = children.size(); j < child.ikey; ++j) {
             typeRecord.push_back(json::Value(nullptr));
           }
-          lastIndex = child.valueIndex;
           typeRecord.push_back(child.createReflectionType());
         }
         return json::Value(std::move(typeRecord));