Skip to content

Commit

Permalink
remove println from deprecated SwapInterval::from
Browse files Browse the repository at this point in the history
  • Loading branch information
antonilol committed Jul 12, 2024
1 parent b2f24d1 commit e3136b8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/sdl2/video.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,10 +622,6 @@ impl Error for SwapIntervalConversionError {}
impl From<i32> for SwapInterval {
/// This function is deprecated, use [`SwapInterval::try_from`] instead and handle the error.
fn from(i: i32) -> Self {
println!(
"SwapInterval::from is deprecated (could be called from .into()), \
use SwapInterval::try_from instead and handle the error"
);
Self::try_from(i).unwrap()
}
}
Expand Down

0 comments on commit e3136b8

Please sign in to comment.