Commit 880e48e2 authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

remove unnecessary method

parent 022e49be
......@@ -23,7 +23,6 @@ import java.util.stream.Collectors;
@Singleton
public class TasksRepository implements Repository
{
private ApplicationConfiguration applicationConfiguration;
private Datastore datastore;
private TeamsRepository teamsRepository;
......@@ -47,16 +46,6 @@ public class TasksRepository implements Repository
.get();
}
private Optional<Task> getByUserFlag(String username, String flagValue)
{
return getUserFlagsHashes(username).entrySet()
.stream()
.filter(flagsMapEntry -> flagsMapEntry.getKey().contains(flagValue))
.map(Map.Entry::getValue)
.map(this::getByLevel)
.findFirst();
}
public List<Task> getAllPublic()
{
return datastore.createQuery(Task.class)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment