Remove dead code

This commit is contained in:
René Pfeuffer
2018-08-31 12:05:05 +02:00
parent ed98d04be4
commit d4a8c05c25
2 changed files with 0 additions and 11 deletions

View File

@@ -92,7 +92,6 @@ public class ChangesetRootResource {
.setEndChangeset(id) .setEndChangeset(id)
.getChangesets(); .getChangesets();
if (changesets != null && changesets.getChangesets() != null && changesets.getChangesets().size() == 1) { if (changesets != null && changesets.getChangesets() != null && changesets.getChangesets().size() == 1) {
PageResult<Changeset> pageResult = new PageResult<>(changesets.getChangesets(), changesets.getTotal());
return Response.ok(changesetToChangesetDtoMapper.map(changesets.getChangesets().get(0), repository)).build(); return Response.ok(changesetToChangesetDtoMapper.map(changesets.getChangesets().get(0), repository)).build();
} else { } else {
return Response.status(Response.Status.NOT_FOUND).build(); return Response.status(Response.Status.NOT_FOUND).build();

View File

@@ -65,16 +65,6 @@ public class ChangesetRootResourceTest {
private ChangesetCollectionToDtoMapper changesetCollectionToDtoMapper; private ChangesetCollectionToDtoMapper changesetCollectionToDtoMapper;
@Mock
private BranchCollectionToDtoMapper branchCollectionToDtoMapper;
@Mock
private ChangesetToParentDtoMapperImpl changesetToParentDtoMapper;
@Mock
private TagCollectionToDtoMapper tagCollectionToDtoMapper;
@InjectMocks @InjectMocks
private ChangesetToChangesetDtoMapperImpl changesetToChangesetDtoMapper; private ChangesetToChangesetDtoMapperImpl changesetToChangesetDtoMapper;