Remove deprecated API get_offset_opt (#10150)

Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
pull/10159/head
Cai Yudong 2021-10-19 11:46:34 +08:00 committed by GitHub
parent 693220fe0a
commit 39bf58d8cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 15 deletions

View File

@ -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 <utility>
#include <vector>
#include <memory>
#include <optional>
#include <string>
#include <unordered_map>
#include <memory>
#include <pb/schema.pb.h>
#include <optional>
#include <utility>
#include <vector>
#include "FieldMeta.h"
#include "pb/schema.pb.h"
namespace milvus {
@ -109,15 +111,6 @@ class Schema {
return sizeof_infos_;
}
[[deprecated]] std::optional<FieldOffset>
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));