Skip to content

Commit

Permalink
SERVER-13645 remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
milkie committed Apr 23, 2014
1 parent 5f762b9 commit 95dcb5f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 1 addition & 6 deletions src/mongo/db/repl/manager.cpp
Expand Up @@ -37,11 +37,6 @@

namespace mongo {

enum {
NOPRIMARY = -2,
SELFPRIMARY = -1
};

/* check members OTHER THAN US to see if they think they are primary */
const Member * Manager::findOtherPrimary(bool& two) {
two = false;
Expand All @@ -64,7 +59,7 @@ namespace mongo {
}

Manager::Manager(ReplSetImpl *_rs) :
task::Server("rsMgr"), rs(_rs), busyWithElectSelf(false), _primary(NOPRIMARY) {
task::Server("rsMgr"), rs(_rs), busyWithElectSelf(false) {
}

Manager::~Manager() {
Expand Down
1 change: 0 additions & 1 deletion src/mongo/db/repl/manager.h
Expand Up @@ -37,7 +37,6 @@ namespace mongo {
class Manager : public task::Server {
ReplSetImpl *rs;
bool busyWithElectSelf;
int _primary;

/** @param two - if true two primaries were seen. this can happen transiently, in addition
* to our polling being only occasional. in this case null is returned, but the caller
Expand Down

0 comments on commit 95dcb5f

Please sign in to comment.