From 6ca8aafdc25adec287126bd410d14f5819341a8f Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 5 Nov 2026 11:19:14 -0500 Subject: [PATCH] Remove an unused variable New libc++ has a mode that warns on this, and this is part of enabling that mode in Chromium builds. No behavior change. Part of https://crbug.com/581374525 --- cpp/test/phonenumbers/phonenumbermatcher_test.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/cpp/test/phonenumbers/phonenumbermatcher_test.cc b/cpp/test/phonenumbers/phonenumbermatcher_test.cc index 4b0f12767c..7e88dfa1d8 100644 --- a/cpp/test/phonenumbers/phonenumbermatcher_test.cc +++ b/cpp/test/phonenumbers/phonenumbermatcher_test.cc @@ -316,7 +316,6 @@ class PhoneNumberMatcherTest : public testing::Test { void EnsureTermination(const string& text, const string& default_country, PhoneNumberMatcher::Leniency leniency) { for (size_t index = 0; index <= text.length(); ++index) { - string sub = text.substr(index); // Iterates over all matches. PhoneNumberMatcher matcher(phone_util_, text, default_country, leniency, 1000000 /* max_tries */);