8000 feat: remove unused helpers · githubocto/flat-vscode@fc8eac5 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Commit fc8eac5

Browse files
author
Matt Rothenberg
committed
feat: remove unused helpers
1 parent ba77bc7 commit fc8eac5

File tree

3 files changed

+1
-28
lines changed

3 files changed

+1
-28
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
"git-url-parse": "^11.4.4",
9494
"pg": "^8.5.1",
9595
"postcss": "^8.2.6",
96-
"query-string": "^6.14.0",
9796
"react": "^17.0.1",
9897
"react-dom": "^17.0.1",
9998
"react-query": "^3.12.0",

src/lib.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * 8000 as vscode from "vscode";
2-
import { URL } from "url";
32
import { ConnectionString } from "connection-string";
43
import { createConnection } from "typeorm";
54

@@ -50,31 +49,6 @@ jobs:
5049
`.replace(/^\s*[\r\n]/gm, "");
5150
}
5251

53-
export function escapeRegExp(str: string) {
54-
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
55-
}
56-
57-
export function makeRangeFromMatch(line: number, match: RegExpMatchArray) {
58-
return new vscode.Range(
59-
// @ts-ignore
60-
new vscode.Position(line, match.index),
61-
// @ts-ignore
62-
new vscode.Position(line, match.index + match[0].length)
63-
);
64-
}
65-
66-
export function isValidUrl(input: string) {
67-
let url;
68-
69-
try {
70-
url = new URL(input);
71-
} catch (_) {
72-
return false;
73-
}
74-
75-
return url.protocol === "http:" || url.protocol === "https:";
76-
}
77-
7852
interface GetSessionParams {
7953
createIfNone: boolean;
8054
}

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5799,7 +5799,7 @@ qs@^6.9.4:
57995799
resolved "https://registry.yarnpkg.com/qs/-/qs-6.9.6.tgz#26ed3c8243a431b2924aca84cc90471f35d5a0ee"
58005800
integrity sha512-TIRk4aqYLNoJUbd+g2lEdz5kLWIuTMRagAXxl78Q0RiVjAOugHmeKNGdd3cwo/ktpf9aL9epCfFqWDEKysUlLQ==
58015801

5802-
query-string@^6.13.8, query-string@^6.14.0:
5802+
query-string@^6.13.8:
58035803
version "6.14.0"
58045804
resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.14.0.tgz#0b7b7ca326f5facf10dd2d45d26645cd287f8c92"
58055805
integrity sha512-In3o+lUxlgejoVJgwEdYtdxrmlL0cQWJXj0+kkI7RWVo7hg5AhFtybeKlC9Dpgbr8eOC4ydpEh8017WwyfzqVQ==

0 commit comments

Comments
 (0)
0