Skip to content

Commit

Permalink
Removed unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivasreddy authored and timgraham committed Nov 9, 2018
1 parent 978ad6d commit a375e91
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions django/contrib/admindocs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ def create_reference_role(rolename, urlbase):
def _role(name, rawtext, text, lineno, inliner, options=None, content=None):
if options is None:
options = {}
if content is None:
content = []
node = docutils.nodes.reference(
rawtext,
text,
Expand All @@ -128,8 +126,6 @@ def _role(name, rawtext, text, lineno, inliner, options=None, content=None):
def default_reference_role(name, rawtext, text, lineno, inliner, options=None, content=None):
if options is None:
options = {}
if content is None:
content = []
context = inliner.document.settings.default_reference_context
node = docutils.nodes.reference(
rawtext,
Expand Down
1 change: 0 additions & 1 deletion django/contrib/contenttypes/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ def get_for_models(self, *models, for_concrete_models=True):
model__in=needed_models
)
for ct in cts:
model = ct.model_class()
opts_models = needed_opts.pop(ct.model_class()._meta, [])
for model in opts_models:
results[model] = ct
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ def delete_file(self, path, prefixed_path, source_storage):
# unmodified files.
can_skip_unmodified_files = not (self.symlink ^ os.path.islink(full_path))
else:
full_path = None
# In remote storages, skipping is only based on the
# modified times since symlinks aren't relevant.
can_skip_unmodified_files = True
Expand Down

0 comments on commit a375e91

Please sign in to comment.