geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbarr...@apache.org
Subject [27/34] geode-native git commit: GEODE-2494: Remove dead code.
Date Wed, 15 Mar 2017 17:51:28 GMT
GEODE-2494: Remove dead code.


Project: http://git-wip-us.apache.org/repos/asf/geode-native/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode-native/commit/09837a09
Tree: http://git-wip-us.apache.org/repos/asf/geode-native/tree/09837a09
Diff: http://git-wip-us.apache.org/repos/asf/geode-native/diff/09837a09

Branch: refs/heads/feature/GEODE-2602
Commit: 09837a09c003c2b1dd5805016dca56596d545a67
Parents: c6a23f3
Author: Jacob Barrett <jbarrett@pivotal.io>
Authored: Tue Feb 28 08:41:34 2017 -0800
Committer: Jacob Barrett <jbarrett@pivotal.io>
Committed: Wed Mar 15 10:44:23 2017 -0700

----------------------------------------------------------------------
 src/cppcache/src/LRUList.cpp    | 3 ---
 src/cppcache/src/MapSegment.cpp | 5 -----
 2 files changed, 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode-native/blob/09837a09/src/cppcache/src/LRUList.cpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/LRUList.cpp b/src/cppcache/src/LRUList.cpp
index 92b32f9..52cf22f 100644
--- a/src/cppcache/src/LRUList.cpp
+++ b/src/cppcache/src/LRUList.cpp
@@ -25,9 +25,6 @@ namespace client {
 
 using util::concurrent::spinlock_mutex;
 
-//#define LOCK_HEAD SpinLockGuard headLockGuard(m_headLock)
-//#define LOCK_TAIL SpinLockGuard tailLockGuard(m_tailLock)
-
 template <typename TEntry, typename TCreateEntry>
 LRUList<TEntry, TCreateEntry>::LRUList() : m_headLock(), m_tailLock() {
   LRUListEntryPtr headEntry(TCreateEntry::create(NULLPTR));

http://git-wip-us.apache.org/repos/asf/geode-native/blob/09837a09/src/cppcache/src/MapSegment.cpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/MapSegment.cpp b/src/cppcache/src/MapSegment.cpp
index 6396062..28a6890 100644
--- a/src/cppcache/src/MapSegment.cpp
+++ b/src/cppcache/src/MapSegment.cpp
@@ -320,7 +320,6 @@ GfErrType MapSegment::remove(const CacheableKeyPtr& key, CacheablePtr&
oldValue,
                              MapEntryImplPtr& me, int updateCount,
                              VersionTagPtr versionTag, bool afterRemote,
                              bool& isEntryFound) {
-  //  std::lock_guard<spinlock_mutex> lk(m_spinlock);
   int status;
   MapEntryPtr entry;
   if (m_concurrencyChecksEnabled) {
@@ -330,13 +329,11 @@ GfErrType MapSegment::remove(const CacheableKeyPtr& key, CacheablePtr&
oldValue,
     GfErrType err;
     {
       std::lock_guard<spinlock_mutex> lk(m_spinlock);
-      // if (m_concurrencyChecksEnabled)
       err = removeWhenConcurrencyEnabled(key, oldValue, me, updateCount,
                                          versionTag, afterRemote, isEntryFound,
                                          id, handler, expTaskSet);
     }
 
-    // if (m_concurrencyChecksEnabled){
     if (!expTaskSet) {
       CacheImpl::expiryTaskManager->cancelTask(id);
       delete handler;
@@ -461,8 +458,6 @@ void MapSegment::keys(VectorOfCacheableKey& result) {
  */
 void MapSegment::entries(VectorOfRegionEntry& result) {
   std::lock_guard<spinlock_mutex> lk(m_spinlock);
-  // printf("total_size)=%u, current_size=%u\n",
-  //  m_map->total_size(), m_map->current_size());
   for (CacheableKeyHashMap::iterator iter = m_map->begin();
        iter != m_map->end(); iter++) {
     CacheableKeyPtr keyPtr;


Mime
View raw message