Skip to content

Commit

Permalink
remove string list
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Oct 18, 2016
1 parent 2320bc3 commit 2af4b16
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 155 deletions.
12 changes: 0 additions & 12 deletions common/collect/string_list.go

This file was deleted.

25 changes: 0 additions & 25 deletions common/collect/string_list_json.go

This file was deleted.

30 changes: 0 additions & 30 deletions common/collect/string_list_json_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions common/net/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package net

import (
"strings"

"v2ray.com/core/common/collect"
)

func ParseNetwork(nwStr string) Network {
Expand Down Expand Up @@ -56,17 +54,6 @@ func (this Network) UrlPrefix() string {
}
}

// NewNetworkList construsts a NetWorklist from the given StringListeralList.
func NewNetworkList(networks collect.StringList) *NetworkList {
list := &NetworkList{
Network: make([]Network, networks.Len()),
}
for idx, network := range networks {
list.Network[idx] = ParseNetwork(network)
}
return list
}

// HashNetwork returns true if the given network is in this NetworkList.
func (this NetworkList) HasNetwork(network Network) bool {
for _, value := range this.Network {
Expand Down
27 changes: 0 additions & 27 deletions common/net/network_json.go

This file was deleted.

48 changes: 0 additions & 48 deletions common/net/network_json_test.go

This file was deleted.

0 comments on commit 2af4b16

Please sign in to comment.