diff options
Diffstat (limited to 'app/models/group.rb')
-rw-r--r-- | app/models/group.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/app/models/group.rb b/app/models/group.rb index 2dd20300ad2..f51782785f9 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -852,15 +852,7 @@ class Group < Namespace end def self.groups_including_descendants_by(group_ids) - groups = Group.where(id: group_ids) - - if Feature.enabled?(:linear_group_including_descendants_by, default_enabled: :yaml) - groups.self_and_descendants - else - Gitlab::ObjectHierarchy - .new(groups) - .base_and_descendants - end + Group.where(id: group_ids).self_and_descendants end def disable_shared_runners! |