From 1a6d6937c21cb3e745b035f875aacbbc85d719d9 Mon Sep 17 00:00:00 2001 From: Alessio Perugini Date: Thu, 14 Sep 2023 11:24:53 +0200 Subject: [PATCH] remove unsued fields from context --- legacy/builder/builder.go | 2 -- legacy/builder/types/context.go | 9 --------- 2 files changed, 11 deletions(-) diff --git a/legacy/builder/builder.go b/legacy/builder/builder.go index cf9551b0d99..e7fa77fc7f4 100644 --- a/legacy/builder/builder.go +++ b/legacy/builder/builder.go @@ -27,8 +27,6 @@ import ( var tr = i18n.Tr -const DEFAULT_DEBUG_LEVEL = 5 - type Builder struct{} func (s *Builder) Run(ctx *types.Context) error { diff --git a/legacy/builder/types/context.go b/legacy/builder/types/context.go index e720af613d1..64b85c93fe2 100644 --- a/legacy/builder/types/context.go +++ b/legacy/builder/types/context.go @@ -19,8 +19,6 @@ import ( "github.com/arduino/arduino-cli/arduino/builder" "github.com/arduino/arduino-cli/arduino/builder/detector" "github.com/arduino/arduino-cli/arduino/builder/logger" - "github.com/arduino/arduino-cli/arduino/cores/packagemanager" - paths "github.com/arduino/go-paths-helper" ) // Context structure @@ -28,11 +26,4 @@ type Context struct { Builder *builder.Builder SketchLibrariesDetector *detector.SketchLibrariesDetector BuilderLogger *logger.BuilderLogger - - // Used only by legacy tests - HardwareDirs paths.PathList - BuiltInToolsDirs paths.PathList - BuiltInLibrariesDirs *paths.Path - OtherLibrariesDirs paths.PathList - PackageManager *packagemanager.Explorer }