]> git.lizzy.rs Git - rust.git/commitdiff
Dead code
authorAleksey Kladov <aleksey.kladov@gmail.com>
Mon, 30 Dec 2019 19:16:57 +0000 (20:16 +0100)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Mon, 30 Dec 2019 19:16:57 +0000 (20:16 +0100)
editors/code/src/commands/line_buffer.ts [deleted file]
editors/code/src/status_display.ts

diff --git a/editors/code/src/commands/line_buffer.ts b/editors/code/src/commands/line_buffer.ts
deleted file mode 100644 (file)
index fb5b9f7..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-export class LineBuffer {
-    private outBuffer: string = '';
-
-    public processOutput(chunk: string, cb: (line: string) => void) {
-        this.outBuffer += chunk;
-        let eolIndex = this.outBuffer.indexOf('\n');
-        while (eolIndex >= 0) {
-            // line includes the EOL
-            const line = this.outBuffer.slice(0, eolIndex + 1);
-            cb(line);
-            this.outBuffer = this.outBuffer.slice(eolIndex + 1);
-
-            eolIndex = this.outBuffer.indexOf('\n');
-        }
-    }
-}
index 48cf0655be65250a96c04985752f2355437c3663..ed8573f029f2e0dbcd9d4f88f288f9ba935adace 100644 (file)
@@ -28,11 +28,11 @@ export class StatusDisplay implements vscode.Disposable {
                 if (this.packageName) {
                     this.statusBarItem!.text = `cargo ${this.command} [${
                         this.packageName
-                        }] ${this.frame()}`;
+                    }] ${this.frame()}`;
                 } else {
                     this.statusBarItem!.text = `cargo ${
                         this.command
-                        } ${this.frame()}`;
+                    } ${this.frame()}`;
                 }
             }, 300);