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:
@@ -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{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user