git p4: remove unreachable windows \r\n conversion code
[gitweb.git] / git-p4.py
index cbf8525594b44db18bb4d53f392291415583e13d..445d704222963775fd45ee9a4a620b15128b9671 100755 (executable)
--- a/git-p4.py
+++ b/git-p4.py
@@ -2134,15 +2134,6 @@ def streamOneP4File(self, file, contents):
             print "\nIgnoring apple filetype file %s" % file['depotFile']
             return
 
-        # Perhaps windows wants unicode, utf16 newlines translated too;
-        # but this is not doing it.
-        if self.isWindows and type_base == "text":
-            mangled = []
-            for data in contents:
-                data = data.replace("\r\n", "\n")
-                mangled.append(data)
-            contents = mangled
-
         # Note that we do not try to de-mangle keywords on utf16 files,
         # even though in theory somebody may want that.
         pattern = p4_keywords_regexp_for_type(type_base, type_mods)