1
0
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:
Emil Ernerfeldt
2023-12-08 11:02:57 +01:00
committed by GitHub
parent b1721a3ce7
commit 8d4de866d4
20 changed files with 4 additions and 192 deletions

View File

@@ -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 {

View File

@@ -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 {