1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

remove unused function

This commit is contained in:
Darien Raymond 2017-12-19 22:04:20 +01:00
parent 3b45a8d4cc
commit 49056d22ac
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -6,7 +6,6 @@ import (
"context"
"sync"
"v2ray.com/core/app"
"v2ray.com/core/app/log/internal"
"v2ray.com/core/common"
"v2ray.com/core/common/log"
@ -102,14 +101,6 @@ func (g *Instance) Close() {
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() {
common.Must(common.RegisterConfig((*Config)(nil), func(ctx context.Context, config interface{}) (interface{}, error) {
return New(ctx, config.(*Config))