Przeglądaj źródła

Deleting the unused apiMethod gameInfo

Kirk Trombley 5 lat temu
rodzic
commit
5125430668
1 zmienionych plików z 0 dodań i 8 usunięć
  1. 0 8
      client/src/domain/apiMethods.js

+ 0 - 8
client/src/domain/apiMethods.js

@@ -41,14 +41,6 @@ export const createGame = async (timer, rounds, onlyAmerica) => {
     return gameId;
 }
 
-export const gameInfo = async (gameId) => {
-    const res = await fetch(`${API_BASE}/game/${gameId}`);
-    if (!res.ok) {
-        throw Error(res.statusText);
-    }
-    return await res.json();
-}
-
 export const getGameConfig = async (gameId) => {
     const res = await fetch(`${API_BASE}/game/${gameId}/config`);
     if (!res.ok) {