mirror of
https://github.com/Eugeny/tabby
synced 2024-11-15 01:17:14 +00:00
lint
This commit is contained in:
parent
45c48b379b
commit
2b4c25104f
2 changed files with 1 additions and 44 deletions
|
@ -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
|
||||
// }
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in a new issue