mirror of
https://github.com/ansible/awx.git
synced 2026-04-06 18:49:21 -02: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)
|
return Response(data, status=status.HTTP_400_BAD_REQUEST)
|
||||||
|
|
||||||
parent = self.get_parent_object()
|
parent = self.get_parent_object()
|
||||||
# TODO: flake8 warns, pending removal if unneeded
|
|
||||||
# parent_key = getattr(self, 'parent_key', None)
|
|
||||||
relationship = getattr(parent, self.relationship)
|
relationship = getattr(parent, self.relationship)
|
||||||
sub = get_object_or_400(self.model, pk=sub_id)
|
sub = get_object_or_400(self.model, pk=sub_id)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user