Remove unused Response from task delete buffer
@@ -290,16 +290,12 @@ public class TaskResource
@DELETE
@Path("{taskId}/results/{bufferId}")
@Produces(MediaType.APPLICATION_JSON)
- public Response abortResults(@PathParam("taskId") TaskId taskId, @PathParam("bufferId") OutputBufferId bufferId, @Context UriInfo uriInfo)
+ public void abortResults(@PathParam("taskId") TaskId taskId, @PathParam("bufferId") OutputBufferId bufferId, @Context UriInfo uriInfo)
{
requireNonNull(taskId, "taskId is null");
requireNonNull(bufferId, "bufferId is null");
- TaskInfo taskInfo = taskManager.abortTaskResults(taskId, bufferId);
- if (shouldSummarize(uriInfo)) {
- taskInfo = taskInfo.summarize();
- }
- return Response.ok(taskInfo).build();
+ taskManager.abortTaskResults(taskId, bufferId);
}
@Managed
