Skip to content

Commit 1ceb204

Browse files
authored
Drop deprecated functions (#18)
1 parent 38a2573 commit 1ceb204

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

index.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,6 @@ collect.set('isPRConflicts', [
168168
'https://github.com/sindresorhus/refined-github/pull/148/conflicts',
169169
]);
170170

171-
/** @deprecated use isPRConflicts instead */
172-
export const isConflict = isPRConflicts;
173-
collect.set('isConflict', combinedTestOnly);
174-
175171
/** Any `isConversationList` can display both issues and PRs, prefer that detection. `isPRList` only exists because this page has PR-specific filters like the "Reviews" dropdown */
176172
export const isPRList = (url: URL | Location = location): boolean => url.pathname === '/pulls' || getRepoPath(url) === 'pulls';
177173
collect.set('isPRList', [
@@ -249,9 +245,6 @@ collect.set('isRepo', [
249245
'https://github.com/sindresorhus/refined-github/issues/templates/edit', // Gotcha for isRepoIssueList
250246
]);
251247

252-
/** @deprecated use isEmptyRepoRoot instead */
253-
export const isEmptyRepo = (): boolean => isRepo() && exists('.blankslate');
254-
255248
export const isEmptyRepoRoot = (): boolean => isRepoRoot() && exists('.blankslate');
256249

257250
export const isRepoTaxonomyConversationList = (url: URL | Location = location): boolean => /^labels\/.+|^milestones\/\d+(?!\/edit)/.test(getRepoPath(url)!);
@@ -440,9 +433,6 @@ export const canUserEditOrganization = (): boolean => isOrganizationProfile() &&
440433

441434
export const canUserEditRepo = (): boolean => isRepo() && exists('.reponav-item[href$="/settings"]');
442435

443-
/** @deprecated use canUserEditRepo instead */
444-
export const isRepoWithAccess = canUserEditRepo;
445-
446436
/** Get the logged-in user’s username */
447437
const getUsername = () => document.querySelector('meta[name="user-login"]')!.getAttribute('content')!;
448438

0 commit comments

Comments
 (0)