Skip to content

Commit

Permalink
Removed ununsed methods
Browse files Browse the repository at this point in the history
  • Loading branch information
felpsey committed Jan 1, 2025
1 parent 2931eae commit aadce3a
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ function App() {
}
}, [programme]);

function decodeSearchParams(): void {
let currentUrl: URL = new URL(document.location.href);
let data: string|null = currentUrl.searchParams.get('data');
// function decodeSearchParams(): void {
// let currentUrl: URL = new URL(document.location.href);
// let data: string|null = currentUrl.searchParams.get('data');

if (data) {
importUnstructuredModuleData(JSON.parse(atob(data)));
}
}
// if (data) {
// importUnstructuredModuleData(JSON.parse(atob(data)));
// }
// }

// function importUnstructuredModuleData(unstructuredModuleData: []): void {
// let structuredModuleData = unstructuredModuleData.map((module: any) => {
Expand All @@ -46,14 +46,14 @@ function App() {
// setProgramme(programme.modules.structuredModuleData);
// }

function encodeModuleData(): string {
// Convert modules array to JSON then base64 encode
return btoa(JSON.stringify(programme));
}
// function encodeModuleData(): string {
// // Convert modules array to JSON then base64 encode
// return btoa(JSON.stringify(programme));
// }

function newModuleEntry(): void {
setIsModalOpen(true);
}
// function newModuleEntry(): void {
// setIsModalOpen(true);
// }

function addModuleData(module: Module): void {
setProgramme((currentProgramme) => {
Expand Down

0 comments on commit aadce3a

Please sign in to comment.