From b77a4239dd86bd8595cff94870f89607d1a5e403 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 20 May 2021 22:09:12 +0200 Subject: Removed icon loading function --- derelict.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/derelict.js b/derelict.js index 1a66f91..59bea14 100644 --- a/derelict.js +++ b/derelict.js @@ -121,16 +121,6 @@ class Wreck { } } -function loadWreckIcon() { - return fetch("/wreck.svg") - .then(response => response.text()) - .then(text => { - const parser = new window.DOMParser() - const svg = parser.parseFromString(text, "image/svg+xml") - return svg.documentElement - }) -} - function vec3FromXYZ({x, y, z}) { return new THREE.Vector3(x, y, z) } -- cgit v1.1