Переглянути джерело

Remove code that depends on code that has not been open sourced.

Use the MONO define for this
Miguel de Icaza 11 роки тому
батько
коміт
d7a460f238

+ 4 - 0
mcs/class/referencesource/System.Runtime.Serialization/System/Runtime/Serialization/Diagnostics/TraceUtility.cs

@@ -50,7 +50,11 @@ namespace System.Runtime.Serialization.Diagnostics
             Fx.Assert(traceCodes.ContainsKey(traceCode), 
                 string.Format(CultureInfo.InvariantCulture, "Unsupported trace code: Please add trace code 0x{0} to the dictionary TraceUtility.traceCodes in {1}", 
                 traceCode.ToString("X", CultureInfo.InvariantCulture), typeof(TraceUtility)));
+#if !MONO
             string msdnTraceCode = System.ServiceModel.Diagnostics.LegacyDiagnosticTrace.GenerateMsdnTraceCode("System.Runtime.Serialization", traceCodes[traceCode]);
+#else
+	    string msdnTraceCode = "";
+#endif
             DiagnosticUtility.DiagnosticTrace.TraceEvent(severity, traceCode, msdnTraceCode, traceDescription, record, exception, null);
         }
     }

+ 4 - 0
mcs/class/referencesource/System.ServiceModel/System/ServiceModel/Diagnostics/TraceUtility.cs

@@ -791,7 +791,11 @@ namespace System.ServiceModel.Diagnostics
             Fx.Assert(traceCodes.ContainsKey(traceCode),
                 string.Format(CultureInfo.InvariantCulture, "Unsupported trace code: Please add trace code 0x{0} to the SortedList TraceUtility.traceCodes in {1}",
                 traceCode.ToString("X", CultureInfo.InvariantCulture), typeof(TraceUtility)));
+#if !MONO
             return LegacyDiagnosticTrace.GenerateMsdnTraceCode(terminatorUri, traceCodes[traceCode]);
+#else
+		return "";
+#endif
         }
 
         internal static Exception ThrowHelperError(Exception exception, Message message)