mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Remove deprecated functions (#3692)
This commit is contained in:
@@ -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