Skip to content

Commit 2447b81

Browse files
committed
Remove unused and commented utility code
Deleted commented-out and unused utility methods from Utility.tsx to clean up the codebase and improve maintainability.
1 parent cad3c85 commit 2447b81

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

src/Components/Utility/Utility.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import type {
3030
specialOrderType
3131
} from 'types/savefile';
3232

33-
/* Gather the XML and handling the file */
3433
//Gets the info from the farm hands as an array of the same type
3534
const GetFarmHands = (locations: gameLocationType[]): playerType[] => {
3635
if (!Array.isArray(locations)) return [];
@@ -385,19 +384,6 @@ const GetMCollection = (archeology: itemsType[], geology: itemsType[], currentCo
385384
return {artifacts, minerals}
386385
}
387386

388-
/* Utility methods */
389-
// const GetLevelInfo = (xp) =>{
390-
// let val;
391-
// try{
392-
// val = Levels.Levels.find((level, i) => level.val >= parseInt(xp))
393-
// val = (val === undefined) ? {"id": 10,"val": 15000} : val;
394-
// }
395-
// catch(err){
396-
// val = parseInt(xp)
397-
// }
398-
// return val;
399-
// }
400-
401387
const ValidateKnown = (k:itemsType[], name: string) => {
402388
if(Array.isArray(k)){
403389
let known = k.find(item => item.key.string === name)
@@ -520,8 +506,6 @@ const GetSpecialRequests = (requests: questType[], info: any[], includeCompleted
520506

521507
const GetGrantpasEval = () =>{
522508

523-
524-
525509
}
526510

527511
/* Required Methods */

0 commit comments

Comments
 (0)