소스 검색

Deleting the unused apiMethod gameInfo

Kirk Trombley 5 년 전
부모
커밋
5125430668
1개의 변경된 파일0개의 추가작업 그리고 8개의 파일을 삭제
  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) {