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 */);