@@ -28,7 +28,6 @@ pub struct BrushTool {
28
28
}
29
29
30
30
pub struct BrushOptions {
31
- legacy_warning_was_shown : bool ,
32
31
diameter : f64 ,
33
32
hardness : f64 ,
34
33
flow : f64 ,
@@ -41,7 +40,6 @@ pub struct BrushOptions {
41
40
impl Default for BrushOptions {
42
41
fn default ( ) -> Self {
43
42
Self {
44
- legacy_warning_was_shown : false ,
45
43
diameter : DEFAULT_BRUSH_SIZE ,
46
44
hardness : 0. ,
47
45
flow : 100. ,
@@ -79,7 +77,6 @@ pub enum BrushToolMessageOptionsUpdate {
79
77
Hardness ( f64 ) ,
80
78
Spacing ( f64 ) ,
81
79
WorkingColors ( Option < Color > , Option < Color > ) ,
82
- NoDisplayLegacyWarning ,
83
80
}
84
81
85
82
#[ derive( Clone , Copy , Debug , Default , PartialEq , Eq ) ]
@@ -224,7 +221,6 @@ impl<'a> MessageHandler<ToolMessage, &mut ToolActionMessageContext<'a>> for Brus
224
221
self . options . color . primary_working_color = primary;
225
222
self . options . color . secondary_working_color = secondary;
226
223
}
227
- BrushToolMessageOptionsUpdate :: NoDisplayLegacyWarning => self . options . legacy_warning_was_shown = true ,
228
224
}
229
225
230
226
self . send_layout ( responses, LayoutTarget :: ToolOptions ) ;
@@ -322,20 +318,6 @@ impl Fsm for BrushToolFsmState {
322
318
document, global_tool_data, input, ..
323
319
} = tool_action_data;
324
320
325
- if !tool_options. legacy_warning_was_shown {
326
- responses. add ( DialogMessage :: DisplayDialogError {
327
- title : "Unsupported tool" . into ( ) ,
328
- description : "
329
- The current Brush tool is a legacy feature with\n \
330
- significant quality and performance limitations.\n \
331
- It will be replaced soon by a new implementation.\n \
332
- "
333
- . trim ( )
334
- . into ( ) ,
335
- } ) ;
336
- responses. add ( BrushToolMessage :: UpdateOptions ( BrushToolMessageOptionsUpdate :: NoDisplayLegacyWarning ) ) ;
337
- }
338
-
339
321
let ToolMessage :: Brush ( event) = event else { return self } ;
340
322
match ( self , event) {
341
323
( BrushToolFsmState :: Ready , BrushToolMessage :: DragStart ) => {
0 commit comments