From 1f9cd7a110e4fe1cf3b4eb220a083fa0f9b0cf98 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 31 Oct 2018 21:55:41 +0100 Subject: Switch from characters to numerical tile IDs --- src/view/util/image.ts | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/view/util') diff --git a/src/view/util/image.ts b/src/view/util/image.ts index 50debde..73edbba 100644 --- a/src/view/util/image.ts +++ b/src/view/util/image.ts @@ -1,5 +1,3 @@ -import { mapValuesAsync } from '../../util'; - export function loadImage(url: string): Promise { return new Promise((resolve, reject) => { const img = new Image(); @@ -9,10 +7,6 @@ export function loadImage(url: string): Promise { }); } -export function loadImages(urls: Map): Promise> { - return mapValuesAsync(loadImage, urls); -} - export function mkTexture(gl: WebGLRenderingContext, src: HTMLCanvasElement|HTMLImageElement): WebGLTexture { const texture = gl.createTexture(); if (!texture) -- cgit v1.2.3