From 3c8b12f781d3d5bfa71289c1d8d4c1936386ffc1 Mon Sep 17 00:00:00 2001 From: xiyoo0812 Date: Mon, 9 Oct 2023 14:20:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/lbson/src/lbson.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/extend/lbson/src/lbson.cpp b/extend/lbson/src/lbson.cpp index a133cedc..8a1fcd6f 100644 --- a/extend/lbson/src/lbson.cpp +++ b/extend/lbson/src/lbson.cpp @@ -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); } @@ -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);