Skip to content

Commit

Permalink
chore: Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
last-partizan committed Nov 9, 2024
1 parent 690b0be commit ba81e80
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions modeltranslation/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,15 +490,6 @@ class LanguageCacheSingleObjectDescriptor:

accessor = None # needs to be set on instance

@property
def cache_name(self) -> str:
"""
Used in django 1.x
"""
lang = get_language()
cache = build_localized_fieldname(self.accessor, lang) # type: ignore[arg-type]
return "_%s_cache" % cache

def get_cache_name(self) -> str:
"""
Used in django > 2.x
Expand Down

0 comments on commit ba81e80

Please sign in to comment.