Skip to content

Commit

Permalink
remove unsued fields from context
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio-perugini authored and cmaglie committed Sep 15, 2023
1 parent 0bf2756 commit 1a6d693
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions legacy/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
9 changes: 0 additions & 9 deletions legacy/builder/types/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,11 @@ 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
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
}

0 comments on commit 1a6d693

Please sign in to comment.