Skip to content

Commit

Permalink
chore: remove old todo comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TGRHavoc committed Sep 3, 2021
1 parent de73bd1 commit 7c2398d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions js/src/init.js
Expand Up @@ -60,8 +60,6 @@ class Initializer {
blip.description = (blip.hasOwnProperty("description") || blip.description != null) ? blip.description : "";

blip.type = spriteId;
//TODO: Implement
//createBlip(blip);

mapWrapper.createBlip(blip, markers.MarkerTypes);

Expand Down
9 changes: 0 additions & 9 deletions js/src/map.js
Expand Up @@ -198,25 +198,16 @@ class MapWrapper {
}

objectRef.position = Utils.stringCoordToFloat(objectRef.position);
//console.log(objectRef.position);
let coord = Utils.convertToMapLeaflet(this.CurrentLayer, objectRef.position.x, objectRef.position.y);
//console.log(coord);
let markerType = objectRef.type;
const lang = window.Translator;

//console.log(JSON.stringify(locationType));


//TODO: TRANSLATE ENGLISH HERE
let html = Utils.getPositionHtml(objectRef.position);
//let html = '<div class="row info-body-row"><strong>Position:</strong>&nbsp;X {' + objectRef.position.x.toFixed(2) + "} Y {" + objectRef.position.y.toFixed(2) + "} Z {" + objectRef.position.z.toFixed(2) + "}</div>";

if (objectRef.description != "") {
//html += '<div class="row info-body-row"><strong>Description:</strong>&nbsp;' + objectRef.description + "</div>";
html += Utils.getHtmlForInformation(lang.t("map.description"), objectRef.description);
}

//let infoContent = '<div class="info-window"><div class="info-header-box"><div class="info-header">' + name + '</div></div><div class="clear"></div><div class=info-body>' + html + "</div></div>";
let infoContent = Utils.getInfoHtmlForMarkers(name, html);

let image = L.icon(markerType);
Expand Down
3 changes: 0 additions & 3 deletions js/src/socket.js
Expand Up @@ -18,7 +18,6 @@ class SocketHandler {
this.localPlayerCache = {};
}

//FIXME: We should pass a reference to mapWrapper here and call it's functions
connect(connectionString, mapWrapper) {
if (this.webSocket != null) { // Clean up the current websocket connection
this.webSocket.close();
Expand Down Expand Up @@ -101,8 +100,6 @@ class SocketHandler {
}

onError(event) {
// TODO: Alert the user?

new Alerter({
title: window.Translator.t("errors.socket-error"),
status: "error",
Expand Down

0 comments on commit 7c2398d

Please sign in to comment.