Skip to content

Commit 4ca2ca5

Browse files
committed
cmd/gomobile: remove orderedSet
CL feedback
1 parent fe18852 commit 4ca2ca5

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

cmd/gomobile/build.go

-25
Original file line numberDiff line numberDiff line change
@@ -425,28 +425,3 @@ type targetInfo struct {
425425
func (t targetInfo) String() string {
426426
return t.platform + "/" + t.arch
427427
}
428-
429-
type orderedSet struct {
430-
strs []string
431-
m map[string]bool
432-
}
433-
434-
func (s *orderedSet) Has(str string) bool {
435-
return s.m[str]
436-
}
437-
438-
func (s *orderedSet) Add(strs ...string) {
439-
for _, str := range strs {
440-
if !s.m[str] {
441-
if s.m == nil {
442-
s.m = make(map[string]bool)
443-
}
444-
s.m[str] = true
445-
s.strs = append(s.strs, str)
446-
}
447-
}
448-
}
449-
450-
func (s *orderedSet) Slice() []string {
451-
return s.strs
452-
}

0 commit comments

Comments
 (0)