mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 16:58:46 -03:30
Dead code removal
This commit is contained in:
@@ -1753,8 +1753,6 @@ class GroupChildrenList(SubListCreateAttachDetachAPIView):
|
||||
return Response(data, status=status.HTTP_400_BAD_REQUEST)
|
||||
|
||||
parent = self.get_parent_object()
|
||||
# TODO: flake8 warns, pending removal if unneeded
|
||||
# parent_key = getattr(self, 'parent_key', None)
|
||||
relationship = getattr(parent, self.relationship)
|
||||
sub = get_object_or_400(self.model, pk=sub_id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user