Remove unused map data update function

This commit is contained in:
Mitchell McCaffrey 2021-06-05 16:38:18 +10:00
parent e3353c1c44
commit 7b5bbcf05d

View File

@ -128,15 +128,6 @@ export function MapDataProvider({ children }) {
[database]
);
const updateMaps = useCallback(
async (ids, update) => {
await Promise.all(
ids.map((id) => database.table("maps").update(id, update))
);
},
[database]
);
const updateMapState = useCallback(
async (id, update) => {
await database.table("states").update(id, update);
@ -232,7 +223,6 @@ export function MapDataProvider({ children }) {
removeMaps,
resetMap,
updateMap,
updateMaps,
updateMapState,
getMap,
mapsLoading,