From 83842ae59d230758425bb907efebdc71d628a046 Mon Sep 17 00:00:00 2001 From: "duanyi.aster" Date: Tue, 10 Sep 2024 18:24:51 +0800 Subject: [PATCH] fix --- loader/loader_compat.go | 30 ------------------------------ loader/loader_latest.go | 1 - 2 files changed, 31 deletions(-) delete mode 100644 loader/loader_compat.go diff --git a/loader/loader_compat.go b/loader/loader_compat.go deleted file mode 100644 index 50a4e089a..000000000 --- a/loader/loader_compat.go +++ /dev/null @@ -1,30 +0,0 @@ -// +build !go1.17 go1.24 - -/* - * Copyright 2021 ByteDance Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package loader - - -// Deprecated: not use it -func (self Loader) LoadOne(text []byte, funcName string, frameSize int, argSize int, argPtrs []bool, localPtrs []bool) Function { - println("sonic/loader for high go version is not implemented") -} - -// Deprecated: not use it -func Load(text []byte, funcs []Func, modulename string, filenames []string) (out []Function) { - println("sonic/loader for high go version is not implemented") -} diff --git a/loader/loader_latest.go b/loader/loader_latest.go index 71431227a..f2c78989d 100644 --- a/loader/loader_latest.go +++ b/loader/loader_latest.go @@ -1,4 +1,3 @@ -// +build go1.17,!go1.24 /* * Copyright 2021 ByteDance Inc.