From a3a41c822c5aa49ad523dfb154dc27f0005fa6b2 Mon Sep 17 00:00:00 2001 From: Hugo van der Merwe <17109322+hugovdm@users.noreply.github.com> Date: Mon, 16 Mar 2020 12:00:57 +0100 Subject: [PATCH] Remove two unused variables. --- icu4c/source/test/intltest/unitstest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/icu4c/source/test/intltest/unitstest.cpp b/icu4c/source/test/intltest/unitstest.cpp index dba5498524c..41d761132fa 100644 --- a/icu4c/source/test/intltest/unitstest.cpp +++ b/icu4c/source/test/intltest/unitstest.cpp @@ -363,7 +363,7 @@ void unitPreferencesTestDataLineFn(void *context, char *fields[][2], int32_t fie StringPiece quantity = trimField(fields[0]); StringPiece usage = trimField(fields[1]); StringPiece region = trimField(fields[2]); - StringPiece inputR = trimField(fields[3]); + // Unused // StringPiece inputR = trimField(fields[3]); StringPiece inputD = trimField(fields[4]); StringPiece inputUnit = trimField(fields[5]); ExpectedOutput output; @@ -419,7 +419,7 @@ void parsePreferencesTests(const char *filename, char delimiter, char *fields[][ FileStream *file; char line[10000]; char *start, *limit; - int32_t i, length; + int32_t i; if (U_FAILURE(*pErrorCode)) { return; } @@ -441,7 +441,7 @@ void parsePreferencesTests(const char *filename, char delimiter, char *fields[][ while (T_FileStream_readLine(file, line, sizeof(line)) != NULL) { /* remove trailing newline characters */ - length = (int32_t)(u_rtrim(line) - line); + u_rtrim(line); start = line; *pErrorCode = U_ZERO_ERROR; -- 2.40.0