Code

Opened 3 years ago

Closed 3 years ago

#16923 closed Cleanup/optimization (fixed)

Remove dead code: Serializer.get_string_value

Reported by: aaugustin 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

Description

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/base.py:16338:    def get_string_value(self, obj, field):
django/core/serializers/xml_serializer.py:8153:            value = self.get_string_value(obj, field)

The entire test suite still passes after removing it.

Attachments (1)

16923.patch (586 bytes) - added by aaugustin 3 years ago.

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by aaugustin

comment:1 Changed 3 years ago by lukeplant

  • Triage Stage changed from Unreviewed to Ready for checkin

comment:2 Changed 3 years ago by aaugustin

  • Resolution set to fixed
  • Status changed from new to closed

In [16979]:

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.