Commit 3837311b authored by Jacob Schatz's avatar Jacob Schatz Committed by Eric Eastwood

Remove unused getBranch method.

Conflicts:
	app/assets/javascripts/repo/helpers/repo_helper.js
parent ac8393b1
......@@ -28,7 +28,7 @@ const RepoCommitSection = {
methods: {
makeCommit() {
// see https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions
const branch = Helper.getBranch();
const branch = Store.currentBranch;
const commitMessage = this.commitMessage;
const actions = this.changedFiles.map(f => ({
action: 'update',
......
......@@ -33,8 +33,8 @@ const RepoHelper = {
? window.performance
: Date,
getBranch() {
return $('button.dropdown-menu-toggle').attr('data-ref');
getFileExtension(fileName) {
return fileName.split('.').pop();
},
getLanguageIDForFile(file, langs) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment