Remove deprecated getAllProjects methods

Signed-off-by: nscuro <nscuro@protonmail.com>
This commit is contained in:
nscuro 2025-02-08 22:51:39 +01:00
parent 0ebbc5a325
commit 4a0df1beef
No known key found for this signature in database
3 changed files with 5 additions and 43 deletions

View file

@ -176,33 +176,6 @@ final class ProjectQueryManager extends QueryManager implements IQueryManager {
return getProjects(false);
}
/**
* Returns a list of all projects.
* This method if designed NOT to provide paginated results.
* @return a List of Projects
*/
@Override
@Deprecated(forRemoval = true, since = "4.12.4")
public List<Project> getAllProjects() {
return getAllProjects(false);
}
/**
* Returns a list of all projects.
* This method if designed NOT to provide paginated results.
* @return a List of Projects
*/
@Override
@Deprecated(forRemoval = true, since = "4.12.4")
public List<Project> getAllProjects(boolean excludeInactive) {
final Query<Project> query = pm.newQuery(Project.class);
if (excludeInactive) {
query.setFilter("active");
}
query.setOrdering("id asc");
return query.executeList();
}
/**
* Returns a list of projects by their name.
* @param name the name of the Projects (required)