Skip to content

Commit 829e996

Browse files
committed
- Remove obsolete ApiError::V1CreateUnsupported
1 parent 44e5b0e commit 829e996

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

src/error.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use tokio::task::JoinError;
88

99
use bifrost_api::backend::BackendRequest;
1010
use hue::event::EventBlock;
11-
use hue::legacy_api::ApiResourceType;
1211
use 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,

src/routes/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)