Opened 5 years ago

Closed 5 years ago

#16923 closed Cleanup/optimization (fixed)

Remove dead code: Serializer.get_string_value

Reported by: Aymeric Augustin Owned by: nobody
Component: Core (Serialization) Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no


This method isn't used anywhere is the codebase since r10554. It was only used by the XML serializer, and it was never documented.

% hg grep get_string_value
django/core/serializers/    def get_string_value(self, obj, field):
django/core/serializers/            value = self.get_string_value(obj, field)

The entire test suite still passes after removing it.

Attachments (1)

16923.patch (586 bytes) - added by Aymeric Augustin 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by Aymeric Augustin

Attachment: 16923.patch added

comment:1 Changed 5 years ago by Luke Plant

Triage Stage: UnreviewedReady for checkin

comment:2 Changed 5 years ago by Aymeric Augustin

Resolution: fixed
Status: newclosed

In [16979]:

Fixed #16923 -- Removed unused method in the serialization code.

Note: See TracTickets for help on using tickets.
Back to Top