From 37fb3e1c2913fcfa1d11eeb9e4bcd0c71c893d93 Mon Sep 17 00:00:00 2001 From: First-Terraner Date: Thu, 29 Feb 2024 15:25:29 +0100 Subject: [PATCH] remove unused code --- src/util/github.ts | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 src/util/github.ts diff --git a/src/util/github.ts b/src/util/github.ts deleted file mode 100644 index a3bbc000..00000000 --- a/src/util/github.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { latestReleaseUrl } from '@consts/urls' -import type { GithubLatest } from '@model/github' - -export function getLatestVersion() { - return fetch(latestReleaseUrl) - .then(res => res.json()) - .then(json => json) as Promise -} - -export function extractVersion(version: string) { - const startIndex = version.indexOf('v') + 1 - const endIndex = version.indexOf('-', startIndex) - return version.slice(startIndex, endIndex) -} \ No newline at end of file