Removed unnecessary methods from Task.java