Skip to content

Commit df16a57

Browse files
committed
Removed unused functions
1 parent 025eccd commit df16a57

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

internal/arduino/cores/packagemanager/package_manager.go

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -255,40 +255,6 @@ func (pme *Explorer) FindPlatformReleaseProvidingBoardsWithVidPid(vid, pid strin
255255
return res
256256
}
257257

258-
// FindBoardsWithVidPid FIXMEDOC
259-
func (pme *Explorer) FindBoardsWithVidPid(vid, pid string) []*cores.Board {
260-
res := []*cores.Board{}
261-
for _, targetPackage := range pme.packages {
262-
for _, targetPlatform := range targetPackage.Platforms {
263-
if platform := pme.GetInstalledPlatformRelease(targetPlatform); platform != nil {
264-
for _, board := range platform.Boards {
265-
if board.HasUsbID(vid, pid) {
266-
res = append(res, board)
267-
}
268-
}
269-
}
270-
}
271-
}
272-
return res
273-
}
274-
275-
// FindBoardsWithID FIXMEDOC
276-
func (pme *Explorer) FindBoardsWithID(id string) []*cores.Board {
277-
res := []*cores.Board{}
278-
for _, targetPackage := range pme.packages {
279-
for _, targetPlatform := range targetPackage.Platforms {
280-
if platform := pme.GetInstalledPlatformRelease(targetPlatform); platform != nil {
281-
for _, board := range platform.Boards {
282-
if board.BoardID == id {
283-
res = append(res, board)
284-
}
285-
}
286-
}
287-
}
288-
}
289-
return res
290-
}
291-
292258
// FindBoardWithFQBN returns the board identified by the fqbn, or an error
293259
func (pme *Explorer) FindBoardWithFQBN(fqbnIn string) (*cores.Board, error) {
294260
fqbn, err := fqbn.Parse(fqbnIn)

0 commit comments

Comments
 (0)