[Cleanup] Removed TARGET_JVM
[mono.git] / mcs / class / System.XML / System.Xml.Serialization / XmlReflectionImporter.cs
index 2ab13cdf37fd17468a64e642e33b7a710fc0fe8c..fe85269f2e82b8a07dca5994baa3563f588883ce 100644 (file)
@@ -709,16 +709,6 @@ namespace System.Xml.Serialization {
                        // Read all Fields via reflection.
                        ArrayList fieldList = new ArrayList();
                        FieldInfo[] tfields = type.GetFields (BindingFlags.Instance | BindingFlags.Public);
-#if TARGET_JVM
-                       // This statement ensures fields are ordered starting from the base type.
-                       for (int ti=0; ti<typeList.Count; ti++) {
-                               for (int i=0; i<tfields.Length; i++) {
-                                       FieldInfo field = tfields[i];
-                                       if (field.DeclaringType == typeList[ti])
-                                               fieldList.Add (field);
-                               }
-                       }
-#else
                        currentType = null;
                        int currentIndex = 0;
                        foreach (FieldInfo field in tfields)
@@ -731,22 +721,9 @@ namespace System.Xml.Serialization {
                                }
                                fieldList.Insert(currentIndex++, field);
                        }
-#endif
                        // Read all Properties via reflection.
                        ArrayList propList = new ArrayList();
                        PropertyInfo[] tprops = type.GetProperties (BindingFlags.Instance | BindingFlags.Public);
-#if TARGET_JVM
-                       // This statement ensures properties are ordered starting from the base type.
-                       for (int ti=0; ti<typeList.Count; ti++) {
-                               for (int i=0; i<tprops.Length; i++) {
-                                       PropertyInfo prop = tprops[i];
-                                       if (!prop.CanRead) continue;
-                                       if (prop.GetIndexParameters().Length > 0) continue;
-                                       if (prop.DeclaringType == typeList[ti])
-                                               propList.Add (prop);
-                               }
-                       }
-#else
                        currentType = null;
                        currentIndex = 0;
                        foreach (PropertyInfo prop in tprops)
@@ -761,7 +738,6 @@ namespace System.Xml.Serialization {
                                if (prop.GetIndexParameters().Length > 0) continue;
                                propList.Insert(currentIndex++, prop);
                        }
-#endif
                        var members = new List<XmlReflectionMember>();
                        int fieldIndex=0;
                        int propIndex=0;