Explorar o código

Deleting the unused apiMethod gameInfo

Kirk Trombley %!s(int64=5) %!d(string=hai) anos
pai
achega
5125430668
Modificáronse 1 ficheiros con 0 adicións e 8 borrados
  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) {