summaryrefslogtreecommitdiff
path: root/lib/api/helpers.rb
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2019-01-06 20:31:37 +0100
committerRobert Schilling <rschilling@student.tugraz.at>2019-01-31 13:49:52 +0100
commit0ce33f6b4f30ddab14025adb16138f1589d32b6f (patch)
tree35edfe95e7690aecbcb1e01a6586a43c9b603d7c /lib/api/helpers.rb
parenta9fdc3118a7f9fb55b6f6b243f7bed2abe1ce48f (diff)
downloadgitlab-ce-0ce33f6b4f30ddab14025adb16138f1589d32b6f.tar.gz
Factor out common label API
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index f769a5f78c0..5fbe9922623 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -170,13 +170,6 @@ module API
end
end
- def find_label(parent, id, include_ancestor_groups: true)
- labels = available_labels_for(parent, include_ancestor_groups: include_ancestor_groups)
- label = labels.find_by_id(id) || labels.find_by_title(id)
-
- label || not_found!('Label')
- end
-
# rubocop: disable CodeReuse/ActiveRecord
def find_project_issue(iid)
IssuesFinder.new(current_user, project_id: user_project.id).find_by!(iid: iid)