Merge pull request #819 from brendanzagaeski/patch-1
[mono.git] / mcs / mcs / location.cs
index 229cc7d25959fdfc659988372aeeee43f1c6fc5d..e7daa53ce0bd98a5f86aeba6f18d632b7f65690f 100644 (file)
@@ -18,12 +18,6 @@ using System.Linq;
 
 namespace Mono.CSharp
 {
-       public enum SourceFileType 
-       {
-               CSharp = 0,
-               PlayScript
-       }
-       
        //
        //  This is one single source file.
        //
@@ -64,7 +58,6 @@ namespace Mono.CSharp
                public readonly string FullPathName;
                public readonly int Index;
                public bool AutoGenerated;
-               readonly SourceFileType FileType;
 
                SourceFileEntry file;
                byte[] algGuid, checksum;
@@ -75,9 +68,6 @@ namespace Mono.CSharp
                        this.Index = index;
                        this.Name = name;
                        this.FullPathName = path;
-
-                       if (name.EndsWith (".play", StringComparison.Ordinal) || name.EndsWith (".asx", StringComparison.Ordinal))
-                               FileType = SourceFileType.PlayScript;
                }
 
                public byte[] Checksum {
@@ -92,12 +82,6 @@ namespace Mono.CSharp
                        }
                }
 
-               public bool IsPlayScript {
-                       get {
-                               return FileType == SourceFileType.PlayScript;
-                       }
-               }
-
                public SourceFileEntry SourceFileEntry {
                        get {
                                return file;
@@ -238,7 +222,7 @@ namespace Mono.CSharp
                // </summary>
                static public void Initialize (List<SourceFile> files)
                {
-#if NET_4_0 || MONODROID
+#if NET_4_0 || MOBILE_DYNAMIC
                        source_list.AddRange (files);
 #else
                        source_list.AddRange (files.ToArray ());