Skip to content

Commit

Permalink
chore: remove copy filename ft in new ui (#397)
Browse files Browse the repository at this point in the history
This is already implemented natively by Bitbucket in the new PR UI
  • Loading branch information
reyronald committed Dec 5, 2020
1 parent fe1e03f commit b84d975
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 73 deletions.
2 changes: 0 additions & 2 deletions src/insert-copy-filename-new/index.js

This file was deleted.

57 changes: 0 additions & 57 deletions src/insert-copy-filename-new/insert-copy-filename-new.js

This file was deleted.

14 changes: 0 additions & 14 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
ignoreWhitespaceInit,
} from './ignore-whitespace'
import insertCopyFilename from './insert-copy-filename'
import insertCopyFilenameNew from './insert-copy-filename-new'
import keymap from './keymap'
import loadAllDiffs from './load-all-diffs'
import occurrencesHighlighter from './occurrences-highlighter'
Expand Down Expand Up @@ -281,19 +280,6 @@ function pullrequestRelatedFeaturesNew(config) {
collapsePullRequestSideMenus(config.collapsePrSideMenusResolutionSize)
}

if (config.copyFilename) {
// eslint-disable-next-line no-new
new SelectorObserver(
document.body,
'article[data-qa="pr-diff-file-styles"]',
function() {
if (config.copyFilename) {
insertCopyFilenameNew(this)
}
}
)
}

if (config.compactFileTree) {
setCompactPRFileTree()
}
Expand Down

0 comments on commit b84d975

Please sign in to comment.