[mapguide-commits] r6522 - trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource/Comparison

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sat Feb 18 10:18:31 EST 2012


Author: jng
Date: 2012-02-18 07:18:31 -0800 (Sat, 18 Feb 2012)
New Revision: 6522

Modified:
   trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource/Comparison/TextFile.cs
Log:
#1950: Remove the 1024 character limit for a comparable line

Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource/Comparison/TextFile.cs
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource/Comparison/TextFile.cs	2012-02-18 13:30:05 UTC (rev 6521)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource/Comparison/TextFile.cs	2012-02-18 15:18:31 UTC (rev 6522)
@@ -53,7 +53,6 @@
 
     public class TextFileDiffList : IDiffList
     {
-        private const int MaxLineLength = 1024;
         private List<TextLine> _lines;
 
         public TextFileDiffList(string fileName)
@@ -66,12 +65,6 @@
                 // the file is reached.
                 while ((line = sr.ReadLine()) != null)
                 {
-                    if (line.Length > MaxLineLength)
-                    {
-                        throw new InvalidOperationException(
-                            string.Format("File contains a line greater than {0} characters.",
-                            MaxLineLength.ToString()));
-                    }
                     _lines.Add(new TextLine(line));
                 }
             }



More information about the mapguide-commits mailing list