mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-14 20:21:45 +01:00
Removed unused WebUserComparator
This commit is contained in:
parent
c8fb39ada5
commit
3ce068e332
@ -16,7 +16,6 @@
|
||||
*/
|
||||
package com.djrapitops.plan.storage.database.transactions.commands;
|
||||
|
||||
import com.djrapitops.plan.delivery.domain.WebUser;
|
||||
import com.djrapitops.plan.delivery.webserver.auth.ActiveCookieStore;
|
||||
import com.djrapitops.plan.storage.database.queries.objects.WebUserQueries;
|
||||
import com.djrapitops.plan.storage.database.sql.tables.SecurityTable;
|
||||
@ -30,7 +29,7 @@ import static com.djrapitops.plan.storage.database.sql.building.Sql.DELETE_FROM;
|
||||
import static com.djrapitops.plan.storage.database.sql.building.Sql.WHERE;
|
||||
|
||||
/**
|
||||
* Transaction to remove a Plan {@link WebUser} from the database.
|
||||
* Transaction to remove a Plan {@link com.djrapitops.plan.delivery.domain.auth.User} from the database.
|
||||
*
|
||||
* @author Rsl1122
|
||||
*/
|
||||
|
@ -1,35 +0,0 @@
|
||||
/*
|
||||
* This file is part of Player Analytics (Plan).
|
||||
*
|
||||
* Plan is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License v3 as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Plan is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with Plan. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.djrapitops.plan.utilities.comparators;
|
||||
|
||||
import com.djrapitops.plan.delivery.domain.WebUser;
|
||||
|
||||
import java.util.Comparator;
|
||||
|
||||
/**
|
||||
* Orders WebUsers in descending order by permission level.
|
||||
*
|
||||
* @author Rsl1122
|
||||
*/
|
||||
public class WebUserComparator implements Comparator<WebUser> {
|
||||
|
||||
@Override
|
||||
public int compare(WebUser o1, WebUser o2) {
|
||||
return Integer.compare(o2.getPermLevel(), o1.getPermLevel());
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user