diff --git a/proxy/vmess/account.go b/proxy/vmess/account.go index 88499db84..b2c406742 100644 --- a/proxy/vmess/account.go +++ b/proxy/vmess/account.go @@ -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 diff --git a/proxy/vmess/account_json.go b/proxy/vmess/account_json.go deleted file mode 100644 index d6fab1f71..000000000 --- a/proxy/vmess/account_json.go +++ /dev/null @@ -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 -}