]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
removed redundant is_dirty function
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 14 Mar 2006 16:24:12 +0000 (16:24 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 14 Mar 2006 16:24:12 +0000 (16:24 +0000)
lib/sqlalchemy/mapping/objectstore.py

index be3d96934c2b9749c27a7f71715138e3fbb17150..004c6985be410330be6c390a3293990eb5c0b71c 100644 (file)
@@ -338,11 +338,6 @@ class UnitOfWork(object):
         """returns True if the given key is present in this UnitOfWork's identity map."""
         return self.identity_map.has_key(key)
     
-    def is_dirty(self, obj):
-        """returns True if the given object is in the dirty, new, modified_lists, or deleted lists of 
-        this UnitOfWork."""
-        return obj in self.dirty or obj in self.new or obj in self.modified_lists or obj in self.deleted
-            
     def _remove_deleted(self, obj):
         if hasattr(obj, "_instance_key"):
             del self.identity_map[obj._instance_key]