mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 00:03:10 +00:00
Remove unused (copied) _before_comment method
This was copied from inventory/ini.py, but the rewritten version doesn't use it, and shows that it isn't needed.
This commit is contained in:
@@ -53,11 +53,3 @@ class InventoryIniParser(InventoryAggregateParser):
|
||||
|
||||
def parse(self):
|
||||
return super(InventoryDirectoryParser, self).parse()
|
||||
|
||||
def _before_comment(self, msg):
|
||||
''' what's the part of a string before a comment? '''
|
||||
msg = msg.replace("\#","**NOT_A_COMMENT**")
|
||||
msg = msg.split("#")[0]
|
||||
msg = msg.replace("**NOT_A_COMMENT**","#")
|
||||
return msg
|
||||
|
||||
|
||||
Reference in New Issue
Block a user