Skip to content

Commit

Permalink
chore: x
Browse files Browse the repository at this point in the history
  • Loading branch information
pk5ls20 committed Feb 13, 2025
1 parent 07fb635 commit 87d2f32
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions mania/src/core/event/message/push_msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,6 @@ fn extract_msg_body_content(packet: &mut PushMsg) -> Option<Bytes> {
.map(Bytes::from)
}

fn extract_msg_content_stable(packet: &mut PushMsg, err_tip: &str) -> Result<Bytes, EventError> {
extract_msg_body_content(packet).ok_or_else(|| EventError::OtherError(err_tip.to_string()))
}

fn extract_msg_content_unstable(packet: &mut PushMsg, err_tip: &str) -> Result<Bytes, EventError> {
extract_msg_body_content(packet).ok_or_else(|| EventError::InternalWarning(err_tip.to_string()))
}

fn extract_stable_msg_content(packet: &mut PushMsg, err_tip: &str) -> Result<Bytes, EventError> {
packet
.message
Expand Down

0 comments on commit 87d2f32

Please sign in to comment.