Skip to content

Commit a7c03c6

Browse files
committed
Remove some unused stuff
1 parent af8ff34 commit a7c03c6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

gazelle/python/resolve.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,6 @@ func (py *Resolver) Resolve(
317317
// Check if the imported module is part of the standard library.
318318
if isStdModule(Module{Name: moduleName}) {
319319
continue MODULES_LOOP
320-
} else if r.Kind() == pyProtoLibraryKind {
321-
// For py_proto_library, fall back to guessing the label based on the proto_library rule name.
322-
matches = py.resolveProtoFallback(cfg)
323320
} else if cfg.ValidateImportStatements() {
324321
err := fmt.Errorf(
325322
"%[1]q, line %[2]d: %[3]q is an invalid dependency: possible solutions:\n"+
@@ -410,11 +407,6 @@ func (py *Resolver) Resolve(
410407
}
411408
}
412409

413-
func (*Resolver) resolveProtoFallback(c *pythonconfig.Config) []resolve.FindResult {
414-
// TODO
415-
return []resolve.FindResult{}
416-
}
417-
418410
// addResolvedDeps adds the pre-resolved dependencies from the rule's private attributes
419411
// to the provided deps set.
420412
func addResolvedDeps(

0 commit comments

Comments
 (0)