[ntdll 5/5] Remove unused variables

Paul Vriens paul.vriens.wine at gmail.com
Tue Nov 21 02:24:38 CST 2006


Hi,

expected_wstr was not used. The real tests are performed by the one_* tests in
the beginning. The rest of the checks in test_ulonglongtow are NULL checks.

Changelog
  Remove unused variables

Cheers,

Paul.

---
 dlls/ntdll/tests/string.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/dlls/ntdll/tests/string.c b/dlls/ntdll/tests/string.c
index a8a6358..ce5892a 100644
--- a/dlls/ntdll/tests/string.c
+++ b/dlls/ntdll/tests/string.c
@@ -733,8 +733,6 @@ static void one_ui64tow_test(int test_nu
 static void test_ulonglongtow(void)
 {
     int test_num;
-    int pos;
-    WCHAR expected_wstr[LARGE_STRI_BUFFER_LENGTH + 1];
     LPWSTR result;
 
     for (test_num = 0; test_num < NB_ULONGLONG2STR; test_num++) {
@@ -748,11 +746,6 @@ static void test_ulonglongtow(void)
 	} /* if */
     } /* for */
 
-    for (pos = 0; pos < LARGE_STRI_BUFFER_LENGTH; pos++) {
-	expected_wstr[pos] = ulong2str[0].Buffer[pos];
-    } /* for */
-    expected_wstr[LARGE_STRI_BUFFER_LENGTH] = '\0';
-
     if (0) {
         /* Crashes on XP and W2K3 */
         result = p_i64tow(ulonglong2str[0].value, NULL, 10);
@@ -762,11 +755,6 @@ static void test_ulonglongtow(void)
     }
 
     if (p_ui64tow) {
-        for (pos = 0; pos < LARGE_STRI_BUFFER_LENGTH; pos++) {
-	    expected_wstr[pos] = ulong2str[0].Buffer[pos];
-	} /* for */
-	expected_wstr[LARGE_STRI_BUFFER_LENGTH] = '\0';
-
         if (0) {
             /* Crashes on XP and W2K3 */
 	    result = p_ui64tow(ulonglong2str[0].value, NULL, 10);
-- 
1.4.4




More information about the wine-patches mailing list