Skip to content

Commit

Permalink
chore: remove deprecated legacy stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tabarra committed May 11, 2024
1 parent 8d0e7a0 commit c0da83b
Show file tree
Hide file tree
Showing 20 changed files with 63 additions and 1,588 deletions.
2 changes: 1 addition & 1 deletion core/components/PlayerDatabase/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ export default class PlayerDatabase {

/**
* Returns actions/players stats for the database
* FIXME: deprecate, used by the old players page
* NOTE: used by diagnostics and reporting
*/
getDatabaseStats() {
if (!this.#db.obj || !this.#db.obj.data) throw new Error(`database not ready yet`);
Expand Down
2 changes: 0 additions & 2 deletions core/components/WebServer/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export default (config: WebServerConfigType) => {
router.get('/legacy/dashboard', webAuthMw, webRoutes.dashboard);
router.get('/legacy/diagnostics', webAuthMw, webRoutes.diagnostics_page);
router.get('/legacy/masterActions', webAuthMw, webRoutes.masterActions_page);
router.get('/legacy/players', webAuthMw, webRoutes.player_pageOld); //FIXME: remove
router.get('/legacy/resources', webAuthMw, webRoutes.resources);
router.get('/legacy/serverLog', webAuthMw, webRoutes.serverLog);
router.get('/legacy/settings', webAuthMw, webRoutes.settings_page);
Expand Down Expand Up @@ -120,7 +119,6 @@ export default (config: WebServerConfigType) => {
router.get('/player', apiAuthMw, webRoutes.player_modal);
router.get('/player/stats', apiAuthMw, webRoutes.player_stats);
router.get('/player/search', apiAuthMw, webRoutes.player_search);
router.get('/player/search/old', apiAuthMw, webRoutes.player_searchOld);
router.post('/player/checkJoin', intercomAuthMw, webRoutes.player_checkJoin);
router.post('/player/:action', apiAuthMw, webRoutes.player_actions);
router.get('/whitelist/:table', apiAuthMw, webRoutes.whitelist_list);
Expand Down
2 changes: 0 additions & 2 deletions core/webroutes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ export { default as history_actions } from './history/actions.js';

export { default as player_stats } from './player/stats';
export { default as player_search } from './player/search';
export { default as player_pageOld } from './player/pageOld.js'; //FIXME: DEPRECATED
export { default as player_searchOld } from './player/searchOld'; //FIXME: DEPRECATED
export { default as player_modal } from './player/modal';
export { default as player_actions } from './player/actions';
export { default as player_checkJoin } from './player/checkJoin';
Expand Down
130 changes: 0 additions & 130 deletions core/webroutes/player/pageOld.js

This file was deleted.

70 changes: 0 additions & 70 deletions core/webroutes/player/processor.ts

This file was deleted.

117 changes: 0 additions & 117 deletions core/webroutes/player/searchOld.js

This file was deleted.

Loading

0 comments on commit c0da83b

Please sign in to comment.