summaryrefslogtreecommitdiff
path: root/source/libs/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'source/libs/utils.ts')
-rw-r--r--source/libs/utils.ts9
1 files changed, 0 insertions, 9 deletions
diff --git a/source/libs/utils.ts b/source/libs/utils.ts
index 58eb2368..6ba75dd6 100644
--- a/source/libs/utils.ts
+++ b/source/libs/utils.ts
@@ -106,15 +106,6 @@ export function getForkedRepo(): string | undefined {
return select<HTMLAnchorElement>('.fork-flag a')?.pathname.slice(1);
}
-export const getReference = (): string | undefined => {
- const pathnameParts = location.pathname.split('/');
- if (['commits', 'blob', 'tree', 'blame'].includes(pathnameParts[3])) {
- return pathnameParts[4];
- }
-
- return undefined;
-};
-
export const parseTag = (tag: string): {version: string; namespace: string} => {
const [, namespace = '', version = ''] = /(?:(.*)@)?([^@]+)/.exec(tag) ?? [];
return {namespace, version};