filter_modifier: remove unused variable
@@ -220,7 +220,6 @@ static int cb_modifier_filter(void *data, size_t bytes,
char is_modified = FLB_FALSE;
size_t off = 0;
int i;
- int ret;
int removed_map_num = 0;
int map_num = 0;
bool_map_t bool_map[128];
@@ -276,8 +275,8 @@ static int cb_modifier_filter(void *data, size_t bytes,
kv = obj->via.map.ptr;
for(i=0; bool_map[i] != TAIL_OF_ARRAY; i++) {
if (bool_map[i] == TO_BE_REMAINED) {
- ret = msgpack_pack_object(&tmp_pck, (kv+i)->key);
- ret = msgpack_pack_object(&tmp_pck, (kv+i)->val);
+ msgpack_pack_object(&tmp_pck, (kv+i)->key);
+ msgpack_pack_object(&tmp_pck, (kv+i)->val);
}
}
