diff options
author | Nicola Bertoldi <bertoldi@fbk.eu> | 2015-05-04 10:51:12 +0300 |
---|---|---|
committer | Nicola Bertoldi <bertoldi@fbk.eu> | 2015-05-04 10:51:12 +0300 |
commit | 6085a604943cd03e8ebcb41b94cfc5a493db9148 (patch) | |
tree | 625fce357a933d072b20763215c834da794fd672 | |
parent | 90a982e579cf97914531b4d595e11c303baae179 (diff) |
bug fix
-rw-r--r-- | moses/ContextScope.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/moses/ContextScope.h b/moses/ContextScope.h index 5adaadf3c..cd12d6d32 100644 --- a/moses/ContextScope.h +++ b/moses/ContextScope.h @@ -92,12 +92,6 @@ class ContextScope m_scratchpad[key] = ret; return ret; } - if (!CreateNewIfNecessary) return ret; - boost::upgrade_to_unique_lock<shared_mutex> xlock(lock); - ret.reset(new T); - m_scratchpad[key] = ret; - return ret; - } ContextScope() { } |