Don't export unnecessary functions
This commit is contained in:
@@ -137,11 +137,7 @@ function select(data) {
|
||||
record.classList.add('selected');
|
||||
}
|
||||
|
||||
export function getSelected() {
|
||||
return document.querySelector('.soldier-record.selected');
|
||||
}
|
||||
|
||||
export function endMove() {
|
||||
function endMove() {
|
||||
const selected = getSelected();
|
||||
|
||||
if (selected) {
|
||||
@@ -151,6 +147,10 @@ export function endMove() {
|
||||
deselect();
|
||||
}
|
||||
|
||||
export function getSelected() {
|
||||
return document.querySelector('.soldier-record.selected');
|
||||
}
|
||||
|
||||
export function start(startLoc, units) {
|
||||
clear();
|
||||
const forces = createRecords(units);
|
||||
|
||||
Reference in New Issue
Block a user