Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
gerritholl committed Feb 16, 2024
1 parent 9bafbbc commit fd4b225
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions satpy/readers/netcdf_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,14 +527,6 @@ def _can_get_from_other_rc(self, itm):
return True
# need an inverted mapping so I can tell which variables I can store
invmap = self._get_inv_name_map()

Check notice on line 529 in satpy/readers/netcdf_utils.py

View check run for this annotation

codefactor.io / CodeFactor

satpy/readers/netcdf_utils.py#L529

unresolved comment '# FIXME: potential security risk? Acceptable?' (C100)

# listed_variables = self.filetype_info.get("required_netcdf_variables")
# variable_name_replacements = self.filetype_info.get("variable_name_replacements")
# invmap = {}
# for raw_name in listed_variables:
# for subst_name in self._get_required_variable_names([raw_name],
# variable_name_replacements):
# invmap[subst_name] = raw_name
if "rc" in self.filetype_info["required_netcdf_variables"][invmap.get(itm, itm)]:
return True
return False
Expand Down

0 comments on commit fd4b225

Please sign in to comment.