[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapguide-commits
Subject:    [mapguide-commits] r6522 - trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource/Comparison
From:       svn_mapguide () osgeo ! org
Date:       2012-02-18 15:18:31
Message-ID: 20120218151831.C82BC3902DA () trac ! osgeo ! org
[Download RAW message or body]

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));
                 }
             }

_______________________________________________
mapguide-commits mailing list
mapguide-commits@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic