# IGNITE-320 Remove unnecessary checking CacheMapEntry.obsoleteOrDeleted()

Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/8f461c5e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/8f461c5e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/8f461c5e

Branch: refs/heads/ignite-406
Commit: 8f461c5ebe03b89254cec1a576b242223cb8501d
Parents: 2bd7421
Author: sevdokimov <sevdoki...@gridgain.com>
Authored: Wed Mar 11 15:24:34 2015 +0300
Committer: sevdokimov <sevdoki...@gridgain.com>
Committed: Wed Mar 11 16:34:22 2015 +0300

----------------------------------------------------------------------
 .../internal/processors/cache/GridCacheAdapter.java       | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/8f461c5e/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java
index e1d3562..2451cbb 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java
@@ -4140,15 +4140,7 @@ public abstract class GridCacheAdapter<K, V> implements 
GridCache<K, V>,
                         throw CU.convertToCacheException(e);
                     }
                 }
-            },
-
-            false,
-
-            new IgnitePredicate<Cache.Entry<K, V>>() {
-                @Override public boolean apply(Cache.Entry<K, V> lazyEntry) {
-                    return 
!lazyEntry.unwrap(GridCacheEntryEx.class).obsoleteOrDeleted();
-                }
-            }
+            }, false
         );
     }
 

Reply via email to