diff options
author | Marek Safar <marek.safar@gmail.com> | 2008-08-28 14:14:05 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2008-08-28 14:14:05 +0400 |
commit | 18c2b0eaaacb982aba37795dc716ce639bfbf60b (patch) | |
tree | 8e70592a8d405410fe65e4edb3d904e8305edf3c /mcs/class | |
parent | d087095a254a48f45472fcb4a562625407738e8d (diff) |
Warnings cleanup.
svn path=/trunk/mcs/; revision=111796
Diffstat (limited to 'mcs/class')
-rw-r--r-- | mcs/class/System/System.Diagnostics/XmlWriterTraceListener.cs | 9 | ||||
-rw-r--r-- | mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs | 6 |
2 files changed, 7 insertions, 8 deletions
diff --git a/mcs/class/System/System.Diagnostics/XmlWriterTraceListener.cs b/mcs/class/System/System.Diagnostics/XmlWriterTraceListener.cs index 8af4adda925..199b2f65cf9 100644 --- a/mcs/class/System/System.Diagnostics/XmlWriterTraceListener.cs +++ b/mcs/class/System/System.Diagnostics/XmlWriterTraceListener.cs @@ -40,11 +40,10 @@ namespace System.Diagnostics { public class XmlWriterTraceListener : TextWriterTraceListener { - const string e2e_ns = "http://schemas.microsoft.com/2004/06/E2ETraceEvent"; - const string sys_ns = "http://schemas.microsoft.com/2004/06/windows/eventlog/system"; - const string default_name = "XmlWriter"; + static readonly string e2e_ns = "http://schemas.microsoft.com/2004/06/E2ETraceEvent"; + static readonly string sys_ns = "http://schemas.microsoft.com/2004/06/windows/eventlog/system"; + static readonly string default_name = "XmlWriter"; XmlWriter w; - string name; public XmlWriterTraceListener (string filename) : this (filename, default_name) @@ -72,11 +71,11 @@ namespace System.Diagnostics } public XmlWriterTraceListener (TextWriter writer, string name) + : base (name) { XmlWriterSettings settings = new XmlWriterSettings (); settings.OmitXmlDeclaration = true; w = XmlWriter.Create (writer, settings); - this.name = name; } public override void Close () diff --git a/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs b/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs index 8a89c0b0678..26da15b59e6 100644 --- a/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs +++ b/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs @@ -48,7 +48,7 @@ namespace System.Security.Cryptography.X509Certificates { // RFC3280 variables private int max_path_length; private X500DistinguishedName working_issuer_name; - private string working_public_key_algorithm; +// private string working_public_key_algorithm; private AsymmetricAlgorithm working_public_key; // other flags @@ -415,7 +415,7 @@ namespace System.Security.Cryptography.X509Certificates { // 6.1.2 - Initialization (incomplete) // 6.1.2.a-f - policy stuff, some TODO, some not supported // 6.1.2.g - working public key algorithm - working_public_key_algorithm = certificate.PublicKey.Oid.Value; +// working_public_key_algorithm = certificate.PublicKey.Oid.Value; // 6.1.2.h-i - our key contains both the "working public key" and "working public key parameters" data working_public_key = certificate.PublicKey.Key; // 6.1.2.j - working issuer name @@ -525,7 +525,7 @@ namespace System.Security.Cryptography.X509Certificates { // 6.1.4.d-e - our key includes both the public key and it's parameters working_public_key = certificate.PublicKey.Key; // 6.1.4.f - working_public_key_algorithm = certificate.PublicKey.Oid.Value; +// working_public_key_algorithm = certificate.PublicKey.Oid.Value; // TODO 6.1.4.g-j |