From 2b4c25104ff988e7894ba5a7f8ead2b4eb9e4a06 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Thu, 3 Jun 2021 22:48:48 +0200 Subject: [PATCH] lint --- app/lib/stringDecoder.ts | 43 ------------------- .../components/messageBoxModal.component.ts | 2 +- 2 files changed, 1 insertion(+), 44 deletions(-) diff --git a/app/lib/stringDecoder.ts b/app/lib/stringDecoder.ts index 3583c6bc..21492b14 100644 --- a/app/lib/stringDecoder.ts +++ b/app/lib/stringDecoder.ts @@ -103,46 +103,3 @@ export class StringDecoder { return 0 } } - - - - -// // Validates as many continuation bytes for a multi-byte UTF-8 character as -// // needed or are available. If we see a non-continuation byte where we expect -// // one, we "replace" the validated continuation bytes we've seen so far with -// // a single UTF-8 replacement character ('\ufffd'), to match v8's UTF-8 decoding -// // behavior. The continuation byte check is included three times in the case -// // where all of the continuation bytes for a character exist in the same buffer. -// // It is also done this way as a slight performance increase instead of using a -// // loop. -// function utf8CheckExtraBytes (self, buf, p) { -// if ((buf[0] & 0xC0) !== 0x80) { -// self.lastNeed = 0 -// return '\ufffd' -// } -// if (self.lastNeed > 1 && buf.length > 1) { -// if ((buf[1] & 0xC0) !== 0x80) { -// self.lastNeed = 1 -// return '\ufffd' -// } -// if (self.lastNeed > 2 && buf.length > 2) { -// if ((buf[2] & 0xC0) !== 0x80) { -// self.lastNeed = 2 -// return '\ufffd' -// } -// } -// } -// } - -// // Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer. -// function utf8FillLast (buf) { -// const p = this.lastTotal - this.lastNeed -// const r = utf8CheckExtraBytes(this, buf, p) -// if (r !== undefined) {return r} -// if (this.lastNeed <= buf.length) { -// buf.copy(this.lastChar, p, 0, this.lastNeed) -// return this.lastChar.toString(this.encoding, 0, this.lastTotal) -// } -// buf.copy(this.lastChar, p, 0, buf.length) -// this.lastNeed -= buf.length -// } diff --git a/terminus-web/src/components/messageBoxModal.component.ts b/terminus-web/src/components/messageBoxModal.component.ts index 6cda2c39..8bbc4b6f 100644 --- a/terminus-web/src/components/messageBoxModal.component.ts +++ b/terminus-web/src/components/messageBoxModal.component.ts @@ -1,4 +1,4 @@ -import { Component, Input, ElementRef, } from '@angular/core' +import { Component, Input, ElementRef } from '@angular/core' import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap' import { BaseComponent, HotkeysService, MessageBoxOptions } from 'terminus-core'