Author: spouliot
Date: 2008-02-07 16:33:59 -0500 (Thu, 07 Feb 2008)
New Revision: 95191

Modified:
   trunk/mono-tools/gendarme/framework/Gendarme.Framework.Rocks/ChangeLog
   trunk/mono-tools/gendarme/framework/Gendarme.Framework.Rocks/MethodRocks.cs
   trunk/mono-tools/gendarme/framework/Gendarme.Framework.Rocks/TypeRocks.cs
Log:
2008-02-07  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * MethodRocks.cs: Remove IsGetter and IsSetter since they are now 
        properties in Cecil (SVH HEAD) and break the build.
        * TypeRocks.cs: Remove obsoleted GetFinalizer since Nestor fixed all
        their uses in the rules.



Modified: trunk/mono-tools/gendarme/framework/Gendarme.Framework.Rocks/ChangeLog
===================================================================
--- trunk/mono-tools/gendarme/framework/Gendarme.Framework.Rocks/ChangeLog      
2008-02-07 21:33:38 UTC (rev 95190)
+++ trunk/mono-tools/gendarme/framework/Gendarme.Framework.Rocks/ChangeLog      
2008-02-07 21:33:59 UTC (rev 95191)
@@ -1,3 +1,10 @@
+2008-02-07  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * MethodRocks.cs: Remove IsGetter and IsSetter since they are now 
+       properties in Cecil (SVH HEAD) and break the build.
+       * TypeRocks.cs: Remove obsoleted GetFinalizer since Nestor fixed all
+       their uses in the rules.
+
 2008-02-06  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * TypeRocks.cs: IsAttribute now works on a TypeReference. Fix 

Modified: 
trunk/mono-tools/gendarme/framework/Gendarme.Framework.Rocks/MethodRocks.cs
===================================================================
--- trunk/mono-tools/gendarme/framework/Gendarme.Framework.Rocks/MethodRocks.cs 
2008-02-07 21:33:38 UTC (rev 95190)
+++ trunk/mono-tools/gendarme/framework/Gendarme.Framework.Rocks/MethodRocks.cs 
2008-02-07 21:33:59 UTC (rev 95191)
@@ -100,16 +100,6 @@
                }
 
                /// <summary>
-               /// Check if the method corresponds to the get operation on a 
property.
-               /// </summary>
-               /// <param name="self">The MethodDefinition on which the 
extension method can be called.</param>
-               /// <returns>True if the method is a getter, False 
otherwise</returns>
-               public static bool IsGetter (this MethodDefinition self)
-               {
-                       return ((self.SemanticsAttributes & 
MethodSemanticsAttributes.Getter) == MethodSemanticsAttributes.Getter);
-               }
-
-               /// <summary>
                /// Check if the signature of a method is consitent for it's 
use as a Main method.
                /// Note: it doesn't check that the method is the EntryPoint of 
it's assembly.
                /// <code>
@@ -161,16 +151,6 @@
                }
 
                /// <summary>
-               /// Check if the method corresponds to the set operation on a 
property.
-               /// </summary>
-               /// <param name="self">The MethodDefinition on which the 
extension method can be called.</param>
-               /// <returns>True if the method is a setter, False 
otherwise</returns>
-               public static bool IsSetter (this MethodDefinition self)
-               {
-                       return ((self.SemanticsAttributes & 
MethodSemanticsAttributes.Setter) == MethodSemanticsAttributes.Setter);
-               }
-
-               /// <summary>
                /// Check if the method is visible outside of the assembly.
                /// </summary>
                /// <param name="self">The MethodDefinition on which the 
extension method can be called.</param>

Modified: 
trunk/mono-tools/gendarme/framework/Gendarme.Framework.Rocks/TypeRocks.cs
===================================================================
--- trunk/mono-tools/gendarme/framework/Gendarme.Framework.Rocks/TypeRocks.cs   
2008-02-07 21:33:38 UTC (rev 95190)
+++ trunk/mono-tools/gendarme/framework/Gendarme.Framework.Rocks/TypeRocks.cs   
2008-02-07 21:33:59 UTC (rev 95191)
@@ -53,17 +53,6 @@
        public static class TypeRocks {
 
                /// <summary>
-               /// Return the type finalizer (aka destructor).
-               /// </summary>
-               /// <param name="self">The TypeDefinition on which the 
extension method can be called.</param>
-               /// <returns>The MethodDefinition of the finalizer or null if 
the type has no finalizer.</returns>
-               [Obsolete ("use the more general GetMethod 
(MethodSignatures.Finalize)")]
-               public static MethodDefinition GetFinalizer (this 
TypeDefinition self)
-               {
-                       return self.GetMethod (MethodSignatures.Finalize);
-               }
-
-               /// <summary>
                /// Returns the first MethodDefinition that satisfies a given 
MethodSignature.
                /// </summary>
                /// <param name="self">The TypeDefinition on which the 
extension method can be called.</param>

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to