mirror of https://github.com/v2ray/v2ray-core
remove unused function
parent
3b45a8d4cc
commit
49056d22ac
|
@ -6,7 +6,6 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"v2ray.com/core/app"
|
|
||||||
"v2ray.com/core/app/log/internal"
|
"v2ray.com/core/app/log/internal"
|
||||||
"v2ray.com/core/common"
|
"v2ray.com/core/common"
|
||||||
"v2ray.com/core/common/log"
|
"v2ray.com/core/common/log"
|
||||||
|
@ -102,14 +101,6 @@ func (g *Instance) Close() {
|
||||||
g.errorLogger = nil
|
g.errorLogger = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func FromSpace(space app.Space) *Instance {
|
|
||||||
v := space.GetApplication((*Instance)(nil))
|
|
||||||
if logger, ok := v.(*Instance); ok && logger != nil {
|
|
||||||
return logger
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
common.Must(common.RegisterConfig((*Config)(nil), func(ctx context.Context, config interface{}) (interface{}, error) {
|
common.Must(common.RegisterConfig((*Config)(nil), func(ctx context.Context, config interface{}) (interface{}, error) {
|
||||||
return New(ctx, config.(*Config))
|
return New(ctx, config.(*Config))
|
||||||
|
|
Loading…
Reference in New Issue