@@ -66,7 +66,7 @@ const DEFAULT_BUILD_CORE = "arduino"
6666
6767type Builder struct {}
6868
69- func (s * Builder ) Run (context map [ string ] interface {}, ctx * types.Context ) error {
69+ func (s * Builder ) Run (ctx * types.Context ) error {
7070 commands := []types.Command {
7171 & GenerateBuildPathIfMissing {},
7272 & EnsureBuildPathExists {},
@@ -113,14 +113,14 @@ func (s *Builder) Run(context map[string]interface{}, ctx *types.Context) error
113113 & RecipeByPrefixSuffixRunner {Prefix : constants .HOOKS_POSTBUILD , Suffix : constants .HOOKS_PATTERN_SUFFIX },
114114 }
115115
116- mainErr := runCommands (context , ctx , commands , true )
116+ mainErr := runCommands (ctx , commands , true )
117117
118118 commands = []types.Command {
119119 & PrintUsedAndNotUsedLibraries {},
120120
121121 & PrintUsedLibrariesIfVerbose {},
122122 }
123- otherErr := runCommands (context , ctx , commands , false )
123+ otherErr := runCommands (ctx , commands , false )
124124
125125 if mainErr != nil {
126126 return mainErr
@@ -131,7 +131,7 @@ func (s *Builder) Run(context map[string]interface{}, ctx *types.Context) error
131131
132132type Preprocess struct {}
133133
134- func (s * Preprocess ) Run (context map [ string ] interface {}, ctx * types.Context ) error {
134+ func (s * Preprocess ) Run (ctx * types.Context ) error {
135135 commands := []types.Command {
136136 & GenerateBuildPathIfMissing {},
137137 & EnsureBuildPathExists {},
@@ -153,12 +153,12 @@ func (s *Preprocess) Run(context map[string]interface{}, ctx *types.Context) err
153153 & PrintPreprocessedSource {},
154154 }
155155
156- return runCommands (context , ctx , commands , true )
156+ return runCommands (ctx , commands , true )
157157}
158158
159159type ParseHardwareAndDumpBuildProperties struct {}
160160
161- func (s * ParseHardwareAndDumpBuildProperties ) Run (context map [ string ] interface {}, ctx * types.Context ) error {
161+ func (s * ParseHardwareAndDumpBuildProperties ) Run (ctx * types.Context ) error {
162162 commands := []types.Command {
163163 & GenerateBuildPathIfMissing {},
164164
@@ -167,18 +167,18 @@ func (s *ParseHardwareAndDumpBuildProperties) Run(context map[string]interface{}
167167 & DumpBuildProperties {},
168168 }
169169
170- return runCommands (context , ctx , commands , true )
170+ return runCommands (ctx , commands , true )
171171}
172172
173- func runCommands (context map [ string ] interface {}, ctx * types.Context , commands []types.Command , progressEnabled bool ) error {
173+ func runCommands (ctx * types.Context , commands []types.Command , progressEnabled bool ) error {
174174 commandsLength := len (commands )
175175 progressForEachCommand := float32 (100 ) / float32 (commandsLength )
176176
177177 progress := float32 (0 )
178178 for _ , command := range commands {
179179 PrintRingNameIfDebug (ctx , command )
180180 printProgressIfProgressEnabledAndMachineLogger (progressEnabled , ctx , progress )
181- err := command .Run (context , ctx )
181+ err := command .Run (ctx )
182182 if err != nil {
183183 return i18n .WrapError (err )
184184 }
@@ -207,17 +207,17 @@ func PrintRingNameIfDebug(ctx *types.Context, command types.Command) {
207207 }
208208}
209209
210- func RunBuilder (context map [ string ] interface {}, ctx * types.Context ) error {
210+ func RunBuilder (ctx * types.Context ) error {
211211 command := Builder {}
212- return command .Run (context , ctx )
212+ return command .Run (ctx )
213213}
214214
215- func RunParseHardwareAndDumpBuildProperties (context map [ string ] interface {}, ctx * types.Context ) error {
215+ func RunParseHardwareAndDumpBuildProperties (ctx * types.Context ) error {
216216 command := ParseHardwareAndDumpBuildProperties {}
217- return command .Run (context , ctx )
217+ return command .Run (ctx )
218218}
219219
220- func RunPreprocess (context map [ string ] interface {}, ctx * types.Context ) error {
220+ func RunPreprocess (ctx * types.Context ) error {
221221 command := Preprocess {}
222- return command .Run (context , ctx )
222+ return command .Run (ctx )
223223}
0 commit comments