remove ParamMap creation from runner

This commit is contained in:
Luna 2020-05-31 22:28:10 -03:00
parent 72379e63ee
commit 36937a5fde

View file

@ -230,18 +230,8 @@ pub const Runner = struct {
.index = command.index,
};
var params = ParamMap.init(self.allocator);
defer params.deinit();
inline for (@typeInfo(@TypeOf(command.parameters)).Struct.fields) |cmd_field| {
_ = try params.put(
cmd_field.name,
@field(command.parameters, cmd_field.name),
);
}
var image = try self.getImage();
try image.runCustomPlugin(@TypeOf(command).plugin_type, pos, &params);
try image.runCustomPlugin(@TypeOf(command).plugin_type, pos, command.parameters);
}
fn newRunCommandSingle(