mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Dead code removal
This commit is contained in:
parent
bf2307946b
commit
7839db0c23
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user