Skip to content

Commit

Permalink
优化接口
Browse files Browse the repository at this point in the history
  • Loading branch information
xiyoo0812 committed Oct 9, 2023
1 parent c17177a commit 3c8b12f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions extend/lbson/src/lbson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ namespace lbson {
static int decode(lua_State* L) {
return thread_bson.decode(L);
}
static slice* encode_slice(lua_State* L) {
return thread_bson.encode_slice(L);
}
static int decode_slice(lua_State* L, slice* slice) {
return thread_bson.decode_slice(L, slice);
}
static bson_value* int32(int32_t value) {
return new bson_value(bson_type::BSON_INT64, value);
}
Expand Down Expand Up @@ -50,8 +44,6 @@ namespace lbson {
auto llbson = kit_state.new_table();
llbson.set_function("encode", encode);
llbson.set_function("decode", decode);
llbson.set_function("encode_slice", encode_slice);
llbson.set_function("decode_slice", decode_slice);
llbson.set_function("mongocodec", mongo_codec);
llbson.set_function("timestamp", timestamp);
llbson.set_function("int32", int32);
Expand Down

0 comments on commit 3c8b12f

Please sign in to comment.