Skip to content

Commit e46d5e3

Browse files
committed
Removed useless statements
markImportedLibrary is lost after function returns so it's useless to update it just before returning. Signed-off-by: Cristian Maglie <c.maglie@arduino.cc>
1 parent fc3859d commit e46d5e3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/arduino.cc/builder/resolve_library.go

-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ func ResolveLibrary(ctx *types.Context, header string) *types.Library {
5656
}
5757

5858
if len(libraries) == 1 {
59-
markImportedLibrary[libraries[0]] = true
6059
return libraries[0]
6160
}
6261

@@ -92,7 +91,6 @@ func ResolveLibrary(ctx *types.Context, header string) *types.Library {
9291

9392
libraryResolutionResults[header] = types.LibraryResolutionResult{Library: library, NotUsedLibraries: filterOutLibraryFrom(libraries, library)}
9493

95-
markImportedLibrary[library] = true
9694
return library
9795
}
9896

0 commit comments

Comments
 (0)