Skip to content

Commit

Permalink
Router: get rid of isMultihomeDb
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedeekay committed Oct 27, 2023
1 parent d16ab61 commit c25d547
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,6 @@ synchronized void setFloodfillEnabledFromMonitor(boolean yes) {

@Override
public boolean floodfillEnabled() {
if (isMultihomeDb())
return _context.netDb().floodfillEnabled();
return _floodfillEnabled;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,21 +356,6 @@ protected boolean isMainDb() {
return false;
}


/**
* Checks if the current database is a multihome database.
*
* @return true if the current database is a multihome database, false otherwise.
* @since 0.9.60
*/
public boolean isMultihomeDb() {
// This is a null check in disguise, don't use .equals() here.
// FNDS.MAIN_DBID is always null, and if _dbid is null it is not the multihome Db
if (_dbid == FloodfillNetworkDatabaseSegmentor.MAIN_DBID)
return false;
return false;
}

public synchronized void startup() {
_log.info("Starting up the kademlia network database");
RouterInfo ri = _context.router().getRouterInfo();
Expand Down

0 comments on commit c25d547

Please sign in to comment.