1
0
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:
Akita Noek 2016-06-27 13:02:20 -04:00
parent bf2307946b
commit 7839db0c23

View File

@ -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)