mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #12031 from amenonsen/deadcode
Remove unused (copied) _before_comment method
This commit is contained in:
commit
9bb95b5235
1 changed files with 0 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue