Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenning committed Oct 11, 2023
1 parent 04310f3 commit 2f58c5a
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions ciscoconfparse/ciscoconfparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,34 +668,6 @@ def __repr__(self):
)
)

# This method is on CiscoConfParse()
@logger.catch(reraise=True)
def _validate_ConfigObjs(self):
"""ConfigObjs should be None or an instance of collections.abc.Sequence."""
raise RuntimeError

# Important: Ensure we have a sane copy of self and self.ConfigObjs...
if not isinstance(self, CiscoConfParse):
err = "CiscoConfParse() did not populate self.ConfigObjs"
raise ValueError(err)

if self.debug > 0:
log_msg = (
"assigning self.ConfigObjs = ConfigList(syntax='%s')" % self.syntax
)
logger.info(log_msg)

if self.ConfigObjs is not None:
if not isinstance(self.ConfigObjs, Sequence):
err = "self.ConfigObjs must be an instance of collections.abc.Sequence."
raise ValueError(err)
else:
# self.ConfigObjs is an instance of Sequence...
return True
else:
# self.ConfigObjs is None
return True

# This method is on CiscoConfParse()
@logger.catch(reraise=True)
def read_config_file(self, filepath=None, logger=None, linesplit_rgx=r"\r*\n+"):
Expand Down

0 comments on commit 2f58c5a

Please sign in to comment.