remove comments

This commit is contained in:
Zutatensuppe 2020-11-08 23:46:28 +01:00
parent f67215c892
commit fa71849bd5

View file

@ -447,8 +447,6 @@ async function main () {
} }
let _STATE_CHANGED = false let _STATE_CHANGED = false
// this must be fetched from server
class renderRect { class renderRect {
constructor() { constructor() {
this.reset() this.reset()
@ -457,7 +455,6 @@ async function main () {
return this.x0 === null ? null : [ return this.x0 === null ? null : [
{x0: this.x0, x1: this.x1, y0: this.y0, y1: this.y1} {x0: this.x0, x1: this.x1, y0: this.y0, y1: this.y1}
] ]
// return this._rects.length === 0 ? null : this._rects
} }
add (pos, offset) { add (pos, offset) {
const x0 = pos.x - offset const x0 = pos.x - offset
@ -468,10 +465,8 @@ async function main () {
this.x1 = this.x1 === null ? x1 : Math.max(this.x1, x1) this.x1 = this.x1 === null ? x1 : Math.max(this.x1, x1)
this.y0 = this.y0 === null ? y0 : Math.min(this.y0, y0) this.y0 = this.y0 === null ? y0 : Math.min(this.y0, y0)
this.y1 = this.y1 === null ? y1 : Math.max(this.y1, y1) this.y1 = this.y1 === null ? y1 : Math.max(this.y1, y1)
// this._rects.push({ x0, x1, y0, y1 })
} }
reset () { reset () {
// this._rects = []
this.x0 = null this.x0 = null
this.x1 = null this.x1 = null
this.y0 = null this.y0 = null