Skip to content

Commit c59c109

Browse files
committed
wit/bindgen: remove unused function findWorld
1 parent c607fcb commit c59c109

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

wit/bindgen/generator.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -176,16 +176,6 @@ func newGenerator(res *wit.Resolve, opts ...Option) (*generator, error) {
176176
return g, nil
177177
}
178178

179-
// TODO: factor this out
180-
func findWorld(r *wit.Resolve, pattern string) *wit.World {
181-
for _, w := range r.Worlds {
182-
if w.Match(pattern) {
183-
return w
184-
}
185-
}
186-
return nil
187-
}
188-
189179
func (g *generator) generate() ([]*gen.Package, error) {
190180
g.detectVersionedPackages()
191181
err := g.defineWorlds()

0 commit comments

Comments
 (0)