Remove dead code identified by Eclipse 3.5.1
Change-Id: Ia15a6d777df6d8771c7b9524aba1e21c4e0e8d09 Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -291,7 +291,6 @@ class GitWebServlet extends HttpServlet {
|
||||
}
|
||||
|
||||
final Map<String, String> params = getParameters(req);
|
||||
final String action = params.get("a");
|
||||
if (deniedActions.contains(params.get("a"))) {
|
||||
rsp.sendError(HttpServletResponse.SC_FORBIDDEN);
|
||||
return;
|
||||
@@ -307,7 +306,6 @@ class GitWebServlet extends HttpServlet {
|
||||
}
|
||||
|
||||
final ProjectControl project;
|
||||
final boolean anonymousRead;
|
||||
try {
|
||||
final Project.NameKey nameKey = new Project.NameKey(name);
|
||||
project = projectControl.validateFor(nameKey);
|
||||
|
||||
@@ -359,7 +359,6 @@ public class ChangeListServiceImpl extends BaseServiceImplementation implements
|
||||
final AsyncCallback<SingleListChangeInfo> callback) {
|
||||
run(callback, new Action<SingleListChangeInfo>() {
|
||||
public SingleListChangeInfo run(final ReviewDb db) throws OrmException {
|
||||
final Account.Id me = getAccountId();
|
||||
final AccountInfoCacheFactory ac = accountInfoCacheFactory.create();
|
||||
final SingleListChangeInfo d = new SingleListChangeInfo();
|
||||
final Set<Change.Id> starred = currentUser.get().getStarredChanges();
|
||||
@@ -538,7 +537,6 @@ public class ChangeListServiceImpl extends BaseServiceImplementation implements
|
||||
}
|
||||
|
||||
public SingleListChangeInfo run(final ReviewDb db) throws OrmException {
|
||||
final Account.Id me = getAccountId();
|
||||
final AccountInfoCacheFactory ac = accountInfoCacheFactory.create();
|
||||
final SingleListChangeInfo d = new SingleListChangeInfo();
|
||||
final Set<Change.Id> starred = currentUser.get().getStarredChanges();
|
||||
|
||||
@@ -28,7 +28,6 @@ import com.google.gerrit.reviewdb.ChangeMessage;
|
||||
import com.google.gerrit.reviewdb.PatchSet;
|
||||
import com.google.gerrit.reviewdb.PatchSetAncestor;
|
||||
import com.google.gerrit.reviewdb.PatchSetApproval;
|
||||
import com.google.gerrit.reviewdb.Project;
|
||||
import com.google.gerrit.reviewdb.RevId;
|
||||
import com.google.gerrit.reviewdb.ReviewDb;
|
||||
import com.google.gerrit.server.account.AccountInfoCacheFactory;
|
||||
@@ -90,7 +89,6 @@ public class ChangeDetailFactory extends Handler<ChangeDetail> {
|
||||
PatchSetInfoNotAvailableException, NoSuchChangeException {
|
||||
control = changeControlFactory.validateFor(changeId);
|
||||
final Change change = control.getChange();
|
||||
final Project proj = control.getProject();
|
||||
final PatchSet patch = db.patchSets().get(change.currentPatchSetId());
|
||||
if (patch == null) {
|
||||
throw new NoSuchEntityException();
|
||||
|
||||
@@ -60,9 +60,8 @@ class ListBranches extends Handler<List<Branch>> {
|
||||
@Override
|
||||
public List<Branch> call() throws NoSuchProjectException,
|
||||
RepositoryNotFoundException {
|
||||
final ProjectControl projectControl =
|
||||
projectControlFactory.validateFor(projectName, ProjectControl.OWNER
|
||||
| ProjectControl.VISIBLE);
|
||||
projectControlFactory.validateFor(projectName, ProjectControl.OWNER
|
||||
| ProjectControl.VISIBLE);
|
||||
|
||||
final List<Branch> branches = new ArrayList<Branch>();
|
||||
final Repository db = repoManager.openRepository(projectName.get());
|
||||
|
||||
Reference in New Issue
Block a user