Skip to content

Commit 50c4098

Browse files
author
Akos Kitta
committed
fix: remove unused API
1 parent 894d0af commit 50c4098

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

arduino-ide-extension/src/common/protocol/board-list.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,7 @@ export interface BoardListItemWithBoard extends BoardListItem {
123123
readonly board: BoardIdentifier;
124124
}
125125

126-
export function isBoardListItemWithBoard(
127-
arg: unknown
128-
): arg is BoardListItemWithBoard {
129-
return isBoardListItem(arg) && Boolean(arg.board);
130-
}
131-
132-
export function getBoardOrInferredBoard(
126+
function getBoardOrInferredBoard(
133127
item: BoardListItem
134128
): BoardIdentifier | undefined {
135129
let board: BoardIdentifier | undefined = undefined;
@@ -199,7 +193,9 @@ function isInferenceType(arg: unknown): arg is InferenceType {
199193
* 1. `BoardListItem#board`:
200194
* 1. Items with `'arduino'` vendor ID in the `fqbn` come before other vendors.
201195
* 1. Natural compare of the `name`.
202-
* 1. If the `BoardListItem`s do not have a `board` property, `BoardListItem#port#address` natural compare is the fallback.
196+
* 1. If the `BoardListItem`s do not have a `board` property:
197+
* 1. Ambiguous boards come before no boards.
198+
* 1. `BoardListItem#port#address` natural compare is the fallback.
203199
*/
204200
function boardListItemComparator(
205201
left: BoardListItem,

0 commit comments

Comments
 (0)