mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
Remove deprecated functions (#3692)
This commit is contained in:
@@ -622,17 +622,6 @@ impl Rounding {
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
#[deprecated = "Use Rounding::ZERO"]
|
||||
pub fn none() -> Self {
|
||||
Self {
|
||||
nw: 0.0,
|
||||
ne: 0.0,
|
||||
sw: 0.0,
|
||||
se: 0.0,
|
||||
}
|
||||
}
|
||||
|
||||
/// Do all corners have the same rounding?
|
||||
#[inline]
|
||||
pub fn is_same(&self) -> bool {
|
||||
|
||||
@@ -4,7 +4,7 @@ use super::*;
|
||||
|
||||
/// Describes the width and color of a line.
|
||||
///
|
||||
/// The default stroke is the same as [`Stroke::none`].
|
||||
/// The default stroke is the same as [`Stroke::NONE`].
|
||||
#[derive(Clone, Copy, Debug, Default, PartialEq)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
|
||||
pub struct Stroke {
|
||||
@@ -19,12 +19,6 @@ impl Stroke {
|
||||
color: Color32::TRANSPARENT,
|
||||
};
|
||||
|
||||
#[deprecated = "Use Stroke::NONE instead"]
|
||||
#[inline(always)]
|
||||
pub fn none() -> Self {
|
||||
Self::new(0.0, Color32::TRANSPARENT)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn new(width: impl Into<f32>, color: impl Into<Color32>) -> Self {
|
||||
Self {
|
||||
|
||||
Reference in New Issue
Block a user