From 599ad9cb518a89733ae702b8aebbe686ea8f66e6 Mon Sep 17 00:00:00 2001 From: Abhijit Menon-Sen Date: Fri, 21 Aug 2015 06:58:23 +0530 Subject: [PATCH] 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. --- lib/ansible/plugins/inventory/ini.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/ansible/plugins/inventory/ini.py b/lib/ansible/plugins/inventory/ini.py index 7c6c3aa95a8..bc6a2bc4894 100644 --- a/lib/ansible/plugins/inventory/ini.py +++ b/lib/ansible/plugins/inventory/ini.py @@ -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 -