Skip to content

Commit a68be55

Browse files
committed
⚰️ removed dead codes
1 parent 85bca42 commit a68be55

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

js/dataLoader.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,4 @@ export async function fetchAllData() {
4141
console.error("Erreur Data Loader:", error);
4242
return { films: {}, series: {}, collections: {}, notifs: {} };
4343
}
44-
}
45-
46-
/**
47-
* Fetches notifications data.
48-
* @returns {Array} An array of notifications.
49-
*/
50-
export async function fetchNotifs() {
51-
try {
52-
const res = await fetch('data/notifs.json');
53-
if (!res.ok) throw new Error("Erreur notifs");
54-
return await res.json();
55-
} catch (error) {
56-
console.warn("Impossible de charger les notifications");
57-
return [];
58-
}
5944
}

js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { fetchAllData } from './dataLoader.js';
88
import { setupHero, renderHorizontalRow, renderGrid, renderNotifs, openDetails, closeDetails, playCurrentMedia, renderCollections } from './display.js';
9-
import { playVideo, closeVideo, toggleNotifs, toggleMobileMenu, toggleMobileSearch, showLoader, hideLoader, hardenPlayerControls, initPlayerPersistence } from './utils.js';
9+
import { closeVideo, toggleNotifs, toggleMobileMenu, toggleMobileSearch, showLoader, hideLoader, hardenPlayerControls, initPlayerPersistence } from './utils.js';
1010

1111
let appData = { films: {}, series: {}, collections: {}, notifs: {} };
1212
let currentView = 'home';

0 commit comments

Comments
 (0)