瀏覽代碼

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) {