Router: get rid of getClientFloodfillNetworkDatabaseFacades, closes #472

This commit is contained in:
eyedeekay
2023-11-24 21:30:57 -05:00
parent bc5a27f8ac
commit 88b3fa1eb3
4 changed files with 0 additions and 40 deletions

View File

@ -133,14 +133,6 @@ public abstract class ClientManagerFacade implements Service {
*/
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
*

View File

@ -798,22 +798,6 @@ class ClientManager {
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
*

View File

@ -307,19 +307,6 @@ public class ClientManagerFacadeImpl extends ClientManagerFacade implements Inte
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
*

View File

@ -56,9 +56,6 @@ public class DummyClientManagerFacade extends ClientManagerFacade {
public FloodfillNetworkDatabaseFacade getClientFloodfillNetworkDatabaseFacade(Hash dbid) {
return null;
}
public Set<FloodfillNetworkDatabaseFacade> getClientFloodfillNetworkDatabaseFacades() {
return Collections.emptySet();
}
public Set<Hash> getPrimaryHashes() {
return Collections.emptySet();
}