Nikolay Sivov : xmllite: Remove dead code.

Alexandre Julliard julliard at winehq.org
Wed Dec 19 14:01:09 CST 2012


Module: wine
Branch: master
Commit: f2eb6d018fc7ad35931c6befa5e37305d1a93e7d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f2eb6d018fc7ad35931c6befa5e37305d1a93e7d

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Dec 19 09:33:03 2012 +0400

xmllite: Remove dead code.

---

 dlls/xmllite/reader.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/dlls/xmllite/reader.c b/dlls/xmllite/reader.c
index 8d6df52..5c027ef 100644
--- a/dlls/xmllite/reader.c
+++ b/dlls/xmllite/reader.c
@@ -501,16 +501,7 @@ static inline const WCHAR *reader_get_cur(xmlreader *reader)
 static int reader_cmp(xmlreader *reader, const WCHAR *str)
 {
     const WCHAR *ptr = reader_get_cur(reader);
-    int i = 0;
-
     return strncmpW(str, ptr, strlenW(str));
-
-    while (str[i]) {
-        if (ptr[i] != str[i]) return 0;
-        i++;
-    }
-
-    return 1;
 }
 
 /* moves cursor n WCHARs forward */




More information about the wine-cvs mailing list