Skip to content

Commit

Permalink
refactor(fxc-front): remove dead code (old scoring code)
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingtof committed May 24, 2024
1 parent 410e21e commit 3e47dae
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 651 deletions.
2 changes: 1 addition & 1 deletion apps/fxc-front/src/app/components/ui/pref-modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class PrefModal extends connect(store)(LitElement) {
constructor() {
super();
Object.getOwnPropertyNames(LEAGUES).forEach((value) => {
this.leagues.push({ value, name: LEAGUES[value].name });
this.leagues.push({ value, name: LEAGUES[value] });
});
this.leagues.sort((a, b) => (a < b ? -1 : 1));
}
Expand Down
7 changes: 0 additions & 7 deletions apps/fxc-front/src/app/logic/score/league.ts

This file was deleted.

68 changes: 0 additions & 68 deletions apps/fxc-front/src/app/logic/score/league/czech.ts

This file was deleted.

25 changes: 0 additions & 25 deletions apps/fxc-front/src/app/logic/score/league/frcfd.ts

This file was deleted.

34 changes: 13 additions & 21 deletions apps/fxc-front/src/app/logic/score/league/leagues.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
import { League } from '../league';
import { CzechEurope, CzechLocal, CzechOutEurope } from './czech';
import { FrCfd } from './frcfd';
import { Leonardo } from './leonardo';
import { UKXCLClub, UKXCLInternational, UKXCLNational } from './ukxcl';
import { WXC } from './wxc';
import { NorwayLeague, XContest, XContestPPG } from './xcontest';

export const LEAGUES: { [name: string]: League } = {
czl: new CzechLocal(),
cze: new CzechEurope(),
czo: new CzechOutEurope(),
fr: new FrCfd(),
leo: new Leonardo(),
nor: new NorwayLeague(),
ukc: new UKXCLClub(),
uki: new UKXCLInternational(),
ukn: new UKXCLNational(),
xc: new XContest(),
xcppg: new XContestPPG(),
wxc: new WXC(),
export const LEAGUES: { [name: string]: string } = {
czl: 'Czech (ČPP local)',
cze: 'Czech (ČPP Europe)',
czo: 'Czech (ČPP outside Europe)',
fr: 'France (CFD)',
leo: 'Leonardo',
nor: 'Norway (Distanseligaen)',
ukc: 'UK (XC League, Club)',
uki: 'UK (XC League, International)',
ukn: 'UK (XC League, National)',
xc: 'XContest',
xcppg: 'XContest PPG',
wxc: 'World XC Online Contest',
};

// allowed league codes
Expand Down
21 changes: 0 additions & 21 deletions apps/fxc-front/src/app/logic/score/league/leonardo.ts

This file was deleted.

153 changes: 0 additions & 153 deletions apps/fxc-front/src/app/logic/score/league/ukxcl.ts

This file was deleted.

20 changes: 0 additions & 20 deletions apps/fxc-front/src/app/logic/score/league/wxc.ts

This file was deleted.

Loading

0 comments on commit 3e47dae

Please sign in to comment.