Index: core/inspector/CodeGeneratorInstrumentation.py |
diff --git a/core/inspector/CodeGeneratorInstrumentation.py b/core/inspector/CodeGeneratorInstrumentation.py |
index 5cfe1f979df7a6aea82002f5dfb483ae4a3596ea..ce639eba284234ed68099d67f23d99fe5a3927a7 100644 |
--- a/core/inspector/CodeGeneratorInstrumentation.py |
+++ b/core/inspector/CodeGeneratorInstrumentation.py |
@@ -261,7 +261,6 @@ class Method: |
if not "Keep" in self.params_impl[0].options: |
self.params_impl = self.params_impl[1:] |
self.params_impl = [Parameter("InstrumentingAgents* agents")] + self.params_impl |
- self.agents_selector_class = re.match("(\w*)", self.params[0].type).group(1) |
self.agents = filter(lambda option: not "=" in option, self.options) |
@@ -288,8 +287,7 @@ class Method: |
condition = "" |
template = template_inline_forward |
else: |
- condition = "InstrumentingAgents* agents = instrumentingAgentsFor%s(%s)" % ( |
- self.agents_selector_class, self.params[0].name) |
+ condition = "InstrumentingAgents* agents = instrumentingAgentsFor(%s)" % self.params[0].name |
if self.returns_value: |
template = template_inline_returns_value |