@@ -70,8 +70,6 @@ type eventHandler struct {
70
70
logLock sync.Mutex
71
71
applicationLogs []proto.Event
72
72
applicationLogsLock sync.Mutex
73
- skaffoldLogs []proto.Event
74
- skaffoldLogsLock sync.Mutex
75
73
cfg Config
76
74
77
75
iteration int
@@ -80,7 +78,6 @@ type eventHandler struct {
80
78
eventChan chan * proto.Event
81
79
eventListeners []* listener
82
80
applicationLogListeners []* listener
83
- skaffoldLogListeners []* listener
84
81
}
85
82
86
83
type listener struct {
@@ -106,10 +103,6 @@ func ForEachApplicationLog(callback func(*proto.Event) error) error {
106
103
return handler .forEachApplicationLog (callback )
107
104
}
108
105
109
- func ForEachSkaffoldLog (callback func (* proto.Event ) error ) error {
110
- return handler .forEachSkaffoldLog (callback )
111
- }
112
-
113
106
func Handle (event * proto.Event ) error {
114
107
if event != nil {
115
108
handler .handle (event )
@@ -155,10 +148,6 @@ func (ev *eventHandler) logApplicationLog(event *proto.Event) {
155
148
ev .log (event , & ev .applicationLogListeners , & ev .applicationLogs , & ev .applicationLogsLock )
156
149
}
157
150
158
- func (ev * eventHandler ) logSkaffoldLog (event * proto.Event ) {
159
- ev .log (event , & ev .skaffoldLogListeners , & ev .skaffoldLogs , & ev .skaffoldLogsLock )
160
- }
161
-
162
151
func (ev * eventHandler ) forEach (listeners * []* listener , log * []proto.Event , lock sync.Locker , callback func (* proto.Event ) error ) error {
163
152
listener := & listener {
164
153
callback : callback ,
@@ -191,10 +180,6 @@ func (ev *eventHandler) forEachApplicationLog(callback func(*proto.Event) error)
191
180
return ev .forEach (& ev .applicationLogListeners , & ev .applicationLogs , & ev .applicationLogsLock , callback )
192
181
}
193
182
194
- func (ev * eventHandler ) forEachSkaffoldLog (callback func (* proto.Event ) error ) error {
195
- return ev .forEach (& ev .skaffoldLogListeners , & ev .skaffoldLogs , & ev .skaffoldLogsLock , callback )
196
- }
197
-
198
183
func emptyState (cfg Config ) proto.State {
199
184
builds := map [string ]string {}
200
185
for _ , p := range cfg .GetPipelines () {
@@ -316,7 +301,6 @@ func TaskInProgress(task constants.Phase, description string) {
316
301
handler .iteration ++
317
302
318
303
handler .applicationLogs = []proto.Event {}
319
- handler .skaffoldLogs = []proto.Event {}
320
304
}
321
305
322
306
handler .handleTaskEvent (& proto.TaskEvent {
@@ -402,9 +386,6 @@ func (ev *eventHandler) handleExec(event *proto.Event) {
402
386
case * proto.Event_ApplicationLogEvent :
403
387
ev .logApplicationLog (event )
404
388
return
405
- case * proto.Event_SkaffoldLogEvent :
406
- ev .logSkaffoldLog (event )
407
- return
408
389
case * proto.Event_BuildSubtaskEvent :
409
390
be := e .BuildSubtaskEvent
410
391
if be .Step == Build {
0 commit comments