diff options
author | Marco Rossignoli <marco.rossignoli@gmail.com> | 2018-04-01 03:19:54 +0300 |
---|---|---|
committer | Dan Moseley <danmose@microsoft.com> | 2018-04-01 03:19:54 +0300 |
commit | dfd9930b3471c3ed03281912506c9da5681f3b21 (patch) | |
tree | 448927d5b7e4ed9e8dc27d58c700a59f64412f53 /src | |
parent | f6a0db6b4d9fe1656eae0e1973b950fd595f8ab5 (diff) |
Cleanup Console.WriteLine() (#28687)
* cleanup
* cleanup
Diffstat (limited to 'src')
3 files changed, 3 insertions, 7 deletions
diff --git a/src/System.Private.Xml/src/System/Xml/Xsl/Runtime/XmlQueryContext.cs b/src/System.Private.Xml/src/System/Xml/Xsl/Runtime/XmlQueryContext.cs index 2a747d6e2a..783692d486 100644 --- a/src/System.Private.Xml/src/System/Xml/Xsl/Runtime/XmlQueryContext.cs +++ b/src/System.Private.Xml/src/System/Xml/Xsl/Runtime/XmlQueryContext.cs @@ -328,9 +328,7 @@ namespace System.Xml.Xsl.Runtime XsltMessageEncounteredEventHandler onMessage = (_argList != null) ? _argList.xsltMessageEncountered : null; if (onMessage != null) - onMessage(this, new XmlILQueryEventArgs(message)); - else - Console.WriteLine(message); + onMessage(this, new XmlILQueryEventArgs(message)); } } diff --git a/src/System.Private.Xml/src/System/Xml/Xsl/XsltOld/MessageAction.cs b/src/System.Private.Xml/src/System/Xml/Xsl/XsltOld/MessageAction.cs index 4910cb122e..6c57672caf 100644 --- a/src/System.Private.Xml/src/System/Xml/Xsl/XsltOld/MessageAction.cs +++ b/src/System.Private.Xml/src/System/Xml/Xsl/XsltOld/MessageAction.cs @@ -56,8 +56,7 @@ namespace System.Xml.Xsl.XsltOld case ProcessingChildren: TextOnlyOutput recOutput = processor.PopOutput() as TextOnlyOutput; - Debug.Assert(recOutput != null); - Console.WriteLine(recOutput.Writer.ToString()); + Debug.Assert(recOutput != null); if (_Terminate) { diff --git a/src/System.Private.Xml/tests/Writers/RwFactory/CXmlDriverVariation.cs b/src/System.Private.Xml/tests/Writers/RwFactory/CXmlDriverVariation.cs index f90abf777f..4f00d99d1f 100644 --- a/src/System.Private.Xml/tests/Writers/RwFactory/CXmlDriverVariation.cs +++ b/src/System.Private.Xml/tests/Writers/RwFactory/CXmlDriverVariation.cs @@ -58,8 +58,7 @@ namespace System.Xml.Tests res = (tagVARIATION_STATUS)HandleException(e); } catch (Exception e) - { - Console.WriteLine(e); + { res = (tagVARIATION_STATUS)HandleException(e); } |