Remove unused dbProvider field from IdentifiedUser
This field is also no longer used in some factory methods, which means many callers need to get updated as well. One side effect is to consolidate many of the GenericFactory#create methods. This in turn means that the remote peer provider is never null; previously the code was treating a null Provider and a Provider that returns null identically, so this should have no behavior change. Change-Id: I107fcfbd1a1d8daa15ee3afc02c8e7e709ffb3ea
This commit is contained in:
committed by
Dave Borowitz
parent
1766703b05
commit
0f8b4118b7
@@ -81,7 +81,6 @@ import com.google.gwtorm.server.OrmException;
|
||||
import com.google.gwtorm.server.SchemaFactory;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Provider;
|
||||
import com.google.inject.util.Providers;
|
||||
|
||||
import org.eclipse.jgit.api.Git;
|
||||
import org.eclipse.jgit.errors.ConfigInvalidException;
|
||||
@@ -532,7 +531,7 @@ public abstract class AbstractDaemonTest {
|
||||
|
||||
private Context newRequestContext(TestAccount account) {
|
||||
return atrScope.newContext(reviewDbProvider, new SshSession(server, account),
|
||||
identifiedUserFactory.create(Providers.of(db), account.getId()));
|
||||
identifiedUserFactory.create(account.getId()));
|
||||
}
|
||||
|
||||
protected Context setApiUser(TestAccount account) {
|
||||
@@ -717,7 +716,7 @@ public abstract class AbstractDaemonTest {
|
||||
}
|
||||
|
||||
protected IdentifiedUser user(TestAccount testAccount) {
|
||||
return identifiedUserFactory.create(Providers.of(db), testAccount.getId());
|
||||
return identifiedUserFactory.create(testAccount.getId());
|
||||
}
|
||||
|
||||
protected RevisionResource parseCurrentRevisionResource(String changeId)
|
||||
|
||||
Reference in New Issue
Block a user