1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-21 16:56:27 -05:00

remove unused code

This commit is contained in:
Darien Raymond 2016-11-02 16:42:02 +01:00
parent 9d2407f4e4
commit 68b85cce60
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
2 changed files with 0 additions and 26 deletions

View File

@ -12,10 +12,6 @@ type InternalAccount struct {
AlterIDs []*protocol.ID
}
func NewAccount() protocol.AsAccount {
return &Account{}
}
func (this *InternalAccount) AnyValidID() *protocol.ID {
if len(this.AlterIDs) == 0 {
return this.ID

View File

@ -1,22 +0,0 @@
// +build json
package vmess
import (
"encoding/json"
)
func (u *Account) UnmarshalJSON(data []byte) error {
type JsonConfig struct {
ID string `json:"id"`
AlterIds uint16 `json:"alterId"`
}
var rawConfig JsonConfig
if err := json.Unmarshal(data, &rawConfig); err != nil {
return err
}
u.Id = rawConfig.ID
u.AlterId = uint32(rawConfig.AlterIds)
return nil
}