Skip to content

Commit 6493770

Browse files
committed
remove some unused code
1 parent d981974 commit 6493770

File tree

1 file changed

+0
-23
lines changed
  • packages/repl/src/lib/workers/bundler

1 file changed

+0
-23
lines changed

packages/repl/src/lib/workers/bundler/index.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -160,29 +160,6 @@ async function follow_redirects(url: string, uid: number) {
160160
return res?.url;
161161
}
162162

163-
function compare_to_version(major: number, minor: number, patch: number): number {
164-
const v = svelte.VERSION.match(/^(\d+)\.(\d+)\.(\d+)/);
165-
166-
// @ts-ignore
167-
return +v[1] - major || +v[2] - minor || +v[3] - patch;
168-
}
169-
170-
function is_v4() {
171-
return compare_to_version(4, 0, 0) >= 0;
172-
}
173-
174-
function is_v5() {
175-
return compare_to_version(5, 0, 0) >= 0;
176-
}
177-
178-
function is_legacy_package_structure() {
179-
return compare_to_version(3, 4, 4) <= 0;
180-
}
181-
182-
function has_loopGuardTimeout_feature() {
183-
return compare_to_version(3, 14, 0) >= 0;
184-
}
185-
186163
async function resolve_from_pkg(
187164
pkg: Record<string, unknown>,
188165
subpath: string,

0 commit comments

Comments
 (0)