Skip to content

Commit

Permalink
Remove leftover code
Browse files Browse the repository at this point in the history
  • Loading branch information
elomatreb committed Aug 27, 2022
1 parent 630db66 commit 5523ac7
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions mpd_client/src/client/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,23 +257,3 @@ where

Ok(())
}

/*
fn response_to_subsystem(res: Response) -> Result<Option<Subsystem>, ConnectionError> {
let mut frame = match res.into_single_frame() {
Ok(f) => f,
Err(_) => return Err(ConnectionError::InvalidResponse),
};
Ok(match frame.get("changed") {
Some(raw) => Some(Subsystem::from_raw_string(raw)),
None => {
if frame.fields_len() != 0 {
warn!("state change response was not empty but did not contain `changed` key");
}
None
}
})
}
*/

0 comments on commit 5523ac7

Please sign in to comment.