diff options
Diffstat (limited to 'source/libs')
-rw-r--r-- | source/libs/utils.ts | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source/libs/utils.ts b/source/libs/utils.ts index 5eedbda0..85886c97 100644 --- a/source/libs/utils.ts +++ b/source/libs/utils.ts @@ -27,11 +27,6 @@ export const getRepoPath = (): string | undefined => { return undefined; }; -export const getRepoBranch = (): string | undefined => { - const [type, branch] = location.pathname.split('/').slice(3); - return isRepo() && type === 'tree' ? branch : undefined; -}; - export const replaceBranch = (currentBranch: string, newBranch: string): string => { // `pageType` will be either `blob' or 'tree' const [pageType, ...branchAndPathParts] = getRepoPath()!.split('/'); |