@@ -51,8 +51,6 @@ type WorkflowManagerAPI struct {
51
51
GetClustersByAgeHandler GetClustersByAgeHandler
52
52
// GetClustersCountHandler sets the operation handler for the get clusters count operation
53
53
GetClustersCountHandler GetClustersCountHandler
54
- // GetComponentByLatestReleaseHandler sets the operation handler for the get component by latest release operation
55
- GetComponentByLatestReleaseHandler GetComponentByLatestReleaseHandler
56
54
// GetComponentByNameHandler sets the operation handler for the get component by name operation
57
55
GetComponentByNameHandler GetComponentByNameHandler
58
56
// GetComponentByReleaseHandler sets the operation handler for the get component by release operation
@@ -132,10 +130,6 @@ func (o *WorkflowManagerAPI) Validate() error {
132
130
unregistered = append (unregistered , "GetClustersCountHandler" )
133
131
}
134
132
135
- if o .GetComponentByLatestReleaseHandler == nil {
136
- unregistered = append (unregistered , "GetComponentByLatestReleaseHandler" )
137
- }
138
-
139
133
if o .GetComponentByNameHandler == nil {
140
134
unregistered = append (unregistered , "GetComponentByNameHandler" )
141
135
}
@@ -245,11 +239,6 @@ func (o *WorkflowManagerAPI) initHandlerCache() {
245
239
}
246
240
o .handlers ["GET" ]["/clusters/count" ] = NewGetClustersCount (o .context , o .GetClustersCountHandler )
247
241
248
- if o .handlers ["GET" ] == nil {
249
- o .handlers [strings .ToUpper ("GET" )] = make (map [string ]http.Handler )
250
- }
251
- o .handlers ["GET" ]["/versions/{train}/{component}/latest" ] = NewGetComponentByLatestRelease (o .context , o .GetComponentByLatestReleaseHandler )
252
-
253
242
if o .handlers ["GET" ] == nil {
254
243
o .handlers [strings .ToUpper ("GET" )] = make (map [string ]http.Handler )
255
244
}
0 commit comments