Skip to content

Commit

Permalink
Router: get rid of getClientFloodfillNetworkDatabaseFacades, closes #472
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedeekay committed Nov 25, 2023
1 parent bc5a27f commit 88b3fa1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 40 deletions.
8 changes: 0 additions & 8 deletions router/java/src/net/i2p/router/ClientManagerFacade.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,6 @@ public void unregisterMetaDest(Destination dest) {}
*/
public abstract FloodfillNetworkDatabaseFacade getClientFloodfillNetworkDatabaseFacade(Hash destHash);

/**
* get all of the FloodfillNetworkDatabaseFacades for all of the clients.
*
* @return non-null set of FloodfillNetworkDatabaseFacades
* @since 0.9.60
*/
public abstract Set<FloodfillNetworkDatabaseFacade> getClientFloodfillNetworkDatabaseFacades();

/**
* get a set of all primary hashes
*
Expand Down
16 changes: 0 additions & 16 deletions router/java/src/net/i2p/router/client/ClientManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -798,22 +798,6 @@ public FloodfillNetworkDatabaseFacade getClientFloodfillNetworkDatabaseFacade(Ha
return null;
}

/**
* get all of the FloodfillNetworkDatabaseFacades for all of the clients.
*
* @return non-null
* @since 0.9.60
*/
public Set<FloodfillNetworkDatabaseFacade> getClientFloodfillNetworkDatabaseFacades() {
Set<FloodfillNetworkDatabaseFacade> rv = new HashSet<FloodfillNetworkDatabaseFacade>();
for (ClientConnectionRunner runner : _runners.values()) {
FloodfillNetworkDatabaseFacade fndf = runner.getFloodfillNetworkDatabaseFacade();
if (fndf != null)
rv.add(fndf);
}
return rv;
}

/**
* get all the primary hashes for all the clients and return them as a set
*
Expand Down
13 changes: 0 additions & 13 deletions router/java/src/net/i2p/router/client/ClientManagerFacadeImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -307,19 +307,6 @@ public FloodfillNetworkDatabaseFacade getClientFloodfillNetworkDatabaseFacade(Ha
return null;
}

/**
* get all of the FloodfillNetworkDatabaseFacades for all of the clients.
*
* @return
*/
@Override
public Set<FloodfillNetworkDatabaseFacade> getClientFloodfillNetworkDatabaseFacades() {
if (_manager != null)
return _manager.getClientFloodfillNetworkDatabaseFacades();
else
return Collections.emptySet();
}

/**
* get all the primary hashes for all the clients and return them as a set
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ public void requestLeaseSet(Hash dest, LeaseSet set) {}
public FloodfillNetworkDatabaseFacade getClientFloodfillNetworkDatabaseFacade(Hash dbid) {
return null;
}
public Set<FloodfillNetworkDatabaseFacade> getClientFloodfillNetworkDatabaseFacades() {
return Collections.emptySet();
}
public Set<Hash> getPrimaryHashes() {
return Collections.emptySet();
}
Expand Down

0 comments on commit 88b3fa1

Please sign in to comment.