Removed RemoveOperations

This commit is contained in:
Rsl1122 2019-02-02 11:50:14 +02:00
parent a41fd0dc40
commit 2bfbb60f1e
4 changed files with 0 additions and 69 deletions

View File

@ -21,7 +21,6 @@ import com.djrapitops.plan.api.exceptions.database.DBInitException;
import com.djrapitops.plan.db.access.Query;
import com.djrapitops.plan.db.access.transactions.Transaction;
import com.djrapitops.plan.system.database.databases.operation.FetchOperations;
import com.djrapitops.plan.system.database.databases.operation.RemoveOperations;
import com.djrapitops.plan.system.database.databases.operation.SaveOperations;
import com.djrapitops.plan.system.database.databases.operation.SearchOperations;
@ -59,9 +58,6 @@ public interface Database {
@Deprecated
FetchOperations fetch();
@Deprecated
RemoveOperations remove();
@Deprecated
SearchOperations search();

View File

@ -30,11 +30,9 @@ import com.djrapitops.plan.db.patches.*;
import com.djrapitops.plan.db.sql.tables.*;
import com.djrapitops.plan.db.tasks.PatchTask;
import com.djrapitops.plan.system.database.databases.operation.FetchOperations;
import com.djrapitops.plan.system.database.databases.operation.RemoveOperations;
import com.djrapitops.plan.system.database.databases.operation.SaveOperations;
import com.djrapitops.plan.system.database.databases.operation.SearchOperations;
import com.djrapitops.plan.system.database.databases.sql.operation.SQLFetchOps;
import com.djrapitops.plan.system.database.databases.sql.operation.SQLRemoveOps;
import com.djrapitops.plan.system.database.databases.sql.operation.SQLSaveOps;
import com.djrapitops.plan.system.database.databases.sql.operation.SQLSearchOps;
import com.djrapitops.plan.system.locale.Locale;
@ -88,7 +86,6 @@ public abstract class SQLDB extends AbstractDatabase {
private final SettingsTable settingsTable;
private final SQLFetchOps fetchOps;
private final SQLRemoveOps removeOps;
private final SQLSearchOps searchOps;
private final SQLSaveOps saveOps;
@ -126,7 +123,6 @@ public abstract class SQLDB extends AbstractDatabase {
settingsTable = new SettingsTable(this);
fetchOps = new SQLFetchOps(this);
removeOps = new SQLRemoveOps(this);
searchOps = new SQLSearchOps(this);
saveOps = new SQLSaveOps(this);
}
@ -404,12 +400,6 @@ public abstract class SQLDB extends AbstractDatabase {
return fetchOps;
}
@Override
@Deprecated
public RemoveOperations remove() {
return removeOps;
}
@Override
@Deprecated
public SearchOperations search() {

View File

@ -1,23 +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.system.database.databases.operation;
@Deprecated
public interface RemoveOperations {
@Deprecated
void webUser(String name);
}

View File

@ -1,32 +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.system.database.databases.sql.operation;
import com.djrapitops.plan.db.SQLDB;
import com.djrapitops.plan.system.database.databases.operation.RemoveOperations;
public class SQLRemoveOps extends SQLOps implements RemoveOperations {
public SQLRemoveOps(SQLDB db) {
super(db);
}
@Override
public void webUser(String userName) {
securityTable.removeUser(userName);
}
}