Skip to content

Commit bd6232c

Browse files
committed
Review comments fixed
1 parent 8b8d09e commit bd6232c

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

src/tarantool_schema.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -398,21 +398,6 @@ schema_add_space(
398398
return -1;
399399
}
400400

401-
int
402-
tarantool_schema_has_space_no(
403-
struct tarantool_schema *schema_obj,
404-
uint32_t space_no) {
405-
/* Prepare key for space search */
406-
struct schema_key space_key;
407-
space_key.number = space_no;
408-
space_key.id = (void *)&(space_key.number);
409-
space_key.id_len = sizeof(uint32_t);
410-
411-
struct mh_schema_space_t *schema = schema_obj->space_hash;
412-
mh_int_t space_slot = mh_schema_space_find(schema, &space_key, NULL);
413-
return (space_slot != mh_end(schema));
414-
}
415-
416401
int
417402
tarantool_schema_add_spaces(
418403
struct tarantool_schema *schema_obj,
@@ -572,7 +557,6 @@ tarantool_schema_get_sid_by_string(
572557
return space->space_number;
573558
}
574559

575-
/* ALIAS for verify existens */
576560
int32_t
577561
tarantool_schema_get_sid_by_number(
578562
struct tarantool_schema *schema_obj,

src/tarantool_schema.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ struct tarantool_schema {
4747
struct mh_schema_space_t *space_hash;
4848
};
4949

50-
int
51-
tarantool_schema_has_space_no(struct tarantool_schema *, uint32_t);
52-
5350
int
5451
tarantool_schema_add_spaces(struct tarantool_schema *, const char *, uint32_t);
5552
int

0 commit comments

Comments
 (0)