Browse Source

2008-10-12 Sebastien Pouliot <[email protected]>

	* EncryptedReference.cs, EncryptedType.cs: Remove unneeded field
	initialization to their default values.
	[Found using Gendarme AvoidUnneededFieldInitializationRule]


svn path=/trunk/mcs/; revision=115568
Sebastien Pouliot 17 years ago
parent
commit
aef5ecbb98

+ 6 - 0
mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog

@@ -1,3 +1,9 @@
+2008-10-12  Sebastien Pouliot  <[email protected]>
+
+	* EncryptedReference.cs, EncryptedType.cs: Remove unneeded field
+	initialization to their default values.
+	[Found using Gendarme AvoidUnneededFieldInitializationRule]
+
 2008-09-17  Sebastien Pouliot  <[email protected]>
 
 	* SignedXmlTest.cs: Add support for signing XML using HMACSHA256,

+ 0 - 1
mcs/class/System.Security/System.Security.Cryptography.Xml/EncryptedReference.cs

@@ -48,7 +48,6 @@ namespace System.Security.Cryptography.Xml {
 
 		protected EncryptedReference ()
 		{
-			uri = null;
 			TransformChain = new TransformChain ();
 		}
 	

+ 0 - 5
mcs/class/System.Security/System.Security.Cryptography.Xml/EncryptedType.cs

@@ -53,13 +53,8 @@ namespace System.Security.Cryptography.Xml {
 		protected EncryptedType ()
 		{
 			cipherData = new CipherData ();
-			encoding = null;
-			encryptionMethod = null;
 			encryptionProperties = new EncryptionPropertyCollection ();
-			id = null;
 			keyInfo = new KeyInfo ();
-			mimeType = null;
-			type = null;
 		}
 	
 		#endregion // Constructors