Browse files

remove dead code

  • Loading branch information...
1 parent 2b05a2f commit 7bf96ac92b1789655e23a49a31c671a52aeada75 @dwight dwight committed Feb 24, 2011
Showing with 0 additions and 9 deletions.
  1. +0 −9 db/concurrency.h
View
9 db/concurrency.h
@@ -78,15 +78,11 @@ namespace mongo {
namespace mongo {
- inline void dbunlocking_write() { }
- inline void dbunlocking_read() { }
-
struct writelock {
writelock() { dbMutex.lock(); }
writelock(const string& ns) { dbMutex.lock(); }
~writelock() {
DESTRUCTOR_GUARD(
- dbunlocking_write();
dbMutex.unlock();
);
}
@@ -99,7 +95,6 @@ namespace mongo {
readlock() { dbMutex.lock_shared(); }
~readlock() {
DESTRUCTOR_GUARD(
- dbunlocking_read();
dbMutex.unlock_shared();
);
}
@@ -111,7 +106,6 @@ namespace mongo {
}
~readlocktry() {
if ( _got ) {
- dbunlocking_read();
dbMutex.unlock_shared();
}
}
@@ -126,7 +120,6 @@ namespace mongo {
}
~writelocktry() {
if ( _got ) {
- dbunlocking_read();
dbMutex.unlock();
}
}
@@ -175,11 +168,9 @@ namespace mongo {
~mongolock() {
DESTRUCTOR_GUARD(
if( _writelock ) {
- dbunlocking_write();
dbMutex.unlock();
}
else {
- dbunlocking_read();
dbMutex.unlock_shared();
}
);

0 comments on commit 7bf96ac

Please sign in to comment.