File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ use tokio::task::JoinError;
88
99use bifrost_api:: backend:: BackendRequest ;
1010use hue:: event:: EventBlock ;
11- use hue:: legacy_api:: ApiResourceType ;
1211use svc:: error:: SvcError ;
1312
1413#[ derive( Error , Debug ) ]
@@ -120,10 +119,6 @@ pub enum ApiError {
120119 #[ error( "Unexpected z2m message: {0:?}" ) ]
121120 UnexpectedZ2mReply ( tokio_tungstenite:: tungstenite:: Message ) ,
122121
123- /* hue api v1 errors */
124- #[ error( "Cannot create resources of type: {0:?}" ) ]
125- V1CreateUnsupported ( ApiResourceType ) ,
126-
127122 /* hue api v2 errors */
128123 #[ error( "Failed to get firmware version reply from update server" ) ]
129124 NoUpdateInformation ,
Original file line number Diff line number Diff line change @@ -150,7 +150,6 @@ impl IntoResponse for ApiError {
150150 | Self :: UpdateNotYetSupported ( _)
151151 | Self :: DeleteNotYetSupported ( _) => StatusCode :: FORBIDDEN ,
152152
153- Self :: V1CreateUnsupported ( _) => StatusCode :: NOT_IMPLEMENTED ,
154153 _ => StatusCode :: INTERNAL_SERVER_ERROR ,
155154 } ;
156155
You can’t perform that action at this time.
0 commit comments