1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-11-23 12:02:58 -05:00

Remove unnecessary API

This commit is contained in:
Shelikhoo
2021-05-04 20:48:31 +01:00
parent 0fbd8a1fd1
commit 38f522fb72
2 changed files with 0 additions and 31 deletions

View File

@@ -18,17 +18,3 @@ func TestFromContextPanic(t *testing.T) {
MustFromContext(context.Background())
}
//go:linkname mustToContextForced github.com/v2fly/v2ray-core/v4.mustToContext
func mustToContextForced(ctx context.Context, v *Instance) context.Context
func TestToContextPanic(t *testing.T) {
defer func() {
r := recover()
if r == nil {
t.Error("expect panic, but nil")
}
}()
mustToContextForced(context.Background(), &Instance{})
}