From 39bf58d8cb1fceb26bd827d5b8e22c3c516a8db4 Mon Sep 17 00:00:00 2001 From: Cai Yudong Date: Tue, 19 Oct 2021 11:46:34 +0800 Subject: [PATCH] Remove deprecated API get_offset_opt (#10150) Signed-off-by: yudong.cai --- internal/core/src/common/Schema.h | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/internal/core/src/common/Schema.h b/internal/core/src/common/Schema.h index 99b720b739..9220887263 100644 --- a/internal/core/src/common/Schema.h +++ b/internal/core/src/common/Schema.h @@ -10,14 +10,16 @@ // or implied. See the License for the specific language governing permissions and limitations under the License #pragma once -#include "FieldMeta.h" -#include -#include + +#include +#include #include #include -#include -#include -#include +#include +#include + +#include "FieldMeta.h" +#include "pb/schema.pb.h" namespace milvus { @@ -109,15 +111,6 @@ class Schema { return sizeof_infos_; } - [[deprecated]] std::optional - get_offset_opt(const FieldName& field_name) const { - if (!name_offsets_.count(field_name)) { - return std::nullopt; - } else { - return name_offsets_.at(field_name); - } - } - FieldOffset get_offset(const FieldName& field_name) const { Assert(name_offsets_.count(field_name));