Skip to content

Commit 577a05e

Browse files
committed
refactor(fxc-front): remove dead code (old scoring code)
1 parent 410e21e commit 577a05e

File tree

11 files changed

+22
-651
lines changed

11 files changed

+22
-651
lines changed

apps/fxc-front/src/app/components/ui/pref-modal.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class PrefModal extends connect(store)(LitElement) {
2222
constructor() {
2323
super();
2424
Object.getOwnPropertyNames(LEAGUES).forEach((value) => {
25-
this.leagues.push({ value, name: LEAGUES[value].name });
25+
this.leagues.push({ value, name: LEAGUES[value] });
2626
});
2727
this.leagues.sort((a, b) => (a < b ? -1 : 1));
2828
}

apps/fxc-front/src/app/logic/score/league.ts

-7
This file was deleted.

apps/fxc-front/src/app/logic/score/league/czech.ts

-68
This file was deleted.

apps/fxc-front/src/app/logic/score/league/frcfd.ts

-25
This file was deleted.

apps/fxc-front/src/app/logic/score/league/leagues.ts

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
import { League } from '../league';
2-
import { CzechEurope, CzechLocal, CzechOutEurope } from './czech';
3-
import { FrCfd } from './frcfd';
4-
import { Leonardo } from './leonardo';
5-
import { UKXCLClub, UKXCLInternational, UKXCLNational } from './ukxcl';
6-
import { WXC } from './wxc';
7-
import { NorwayLeague, XContest, XContestPPG } from './xcontest';
8-
9-
export const LEAGUES: { [name: string]: League } = {
10-
czl: new CzechLocal(),
11-
cze: new CzechEurope(),
12-
czo: new CzechOutEurope(),
13-
fr: new FrCfd(),
14-
leo: new Leonardo(),
15-
nor: new NorwayLeague(),
16-
ukc: new UKXCLClub(),
17-
uki: new UKXCLInternational(),
18-
ukn: new UKXCLNational(),
19-
xc: new XContest(),
20-
xcppg: new XContestPPG(),
21-
wxc: new WXC(),
1+
// import { League } from '../league';
2+
// import { CzechEurope, CzechLocal, CzechOutEurope } from './czech';
3+
// import { FrCfd } from './frcfd';
4+
// import { Leonardo } from './leonardo';
5+
// import { UKXCLClub, UKXCLInternational, UKXCLNational } from './ukxcl';
6+
// import { WXC } from './wxc';
7+
// import { NorwayLeague, XContest, XContestPPG } from './xcontest';
8+
//
9+
export const LEAGUES: { [name: string]: string } = {
10+
czl: 'Czech (ČPP local)',
11+
cze: 'Czech (ČPP Europe)',
12+
czo: 'Czech (ČPP outside Europe)',
13+
fr: 'France (CFD)',
14+
leo: 'Leonardo',
15+
nor: 'Norway (Distanseligaen)',
16+
ukc: 'UK (XC League, Club)',
17+
uki: 'UK (XC League, International)',
18+
ukn: 'UK (XC League, National)',
19+
xc: 'XContest',
20+
xcppg: 'XContest PPG',
21+
wxc: 'World XC Online Contest',
2222
};
2323

2424
// allowed league codes

apps/fxc-front/src/app/logic/score/league/leonardo.ts

-21
This file was deleted.

apps/fxc-front/src/app/logic/score/league/ukxcl.ts

-153
This file was deleted.

apps/fxc-front/src/app/logic/score/league/wxc.ts

-20
This file was deleted.

0 commit comments

Comments
 (0)