diff --git a/scripts/TouchinBuild/CommandBuilders/PatchCsprojCommandBuilder.py b/scripts/TouchinBuild/CommandBuilders/PatchCsprojCommandBuilder.py index 190f17e..fd728f0 100644 --- a/scripts/TouchinBuild/CommandBuilders/PatchCsprojCommandBuilder.py +++ b/scripts/TouchinBuild/CommandBuilders/PatchCsprojCommandBuilder.py @@ -13,7 +13,7 @@ class PatchCsprojCommandBuilder: def getCommandFor(self, line): assert line is not None - parser = InsideSetParser(self.__valueProvider, 'csproj') + parser = InsideSetParser('csproj') result = parser.parseLine(line) csprojPath = result[0] @@ -28,7 +28,7 @@ class PatchCsprojCommandBuilder: def isPatchCsproj(self, line): assert line is not None - parser = InsideSetParser(self.__valueProvider, 'csproj') + parser = InsideSetParser('csproj') isValid = parser.isValidLine(line) return isValid diff --git a/scripts/TouchinBuild/CommandBuilders/PatchInfoplistCommandBuilder.py b/scripts/TouchinBuild/CommandBuilders/PatchInfoplistCommandBuilder.py index 75af291..7c56d72 100644 --- a/scripts/TouchinBuild/CommandBuilders/PatchInfoplistCommandBuilder.py +++ b/scripts/TouchinBuild/CommandBuilders/PatchInfoplistCommandBuilder.py @@ -28,6 +28,6 @@ class PatchInfoplistCommandBuilder: return command def __createParser(self): - parser = InsideSetParser(self.__valueProvider, 'plist') + parser = InsideSetParser('plist') return parser diff --git a/scripts/TouchinBuild/Tests/UnitTests/ProjectParser/test_projectParser.py b/scripts/TouchinBuild/Tests/UnitTests/ProjectParser/test_projectParser.py index 9456623..6253692 100644 --- a/scripts/TouchinBuild/Tests/UnitTests/ProjectParser/test_projectParser.py +++ b/scripts/TouchinBuild/Tests/UnitTests/ProjectParser/test_projectParser.py @@ -7,8 +7,7 @@ from parsers.InsideParser.InsideSetParser import InsideSetParser class TestCsprojParser(unittest.TestCase): def setUp(self): - value_provider = ValueProvider() - self.parser = InsideSetParser(value_provider, 'csproj') + self.parser = InsideSetParser('csproj') def test_isValid(self): diff --git a/scripts/TouchinBuild/parsers/InsideParser/InsideSetParser.py b/scripts/TouchinBuild/parsers/InsideParser/InsideSetParser.py index cef95f6..6156d27 100644 --- a/scripts/TouchinBuild/parsers/InsideParser/InsideSetParser.py +++ b/scripts/TouchinBuild/parsers/InsideParser/InsideSetParser.py @@ -4,11 +4,8 @@ from parsers.LineParser import LineParser class InsideSetParser(LineParser): - def __init__(self, value_provider, fileExt): + def __init__(self, fileExt): LineParser.__init__(self) - assert value_provider is not None - - self.__value_provider = value_provider self.__extension = fileExt def parseLine(self, line):