@@ -28,7 +28,6 @@ pub struct BrushTool {
2828}
2929
3030pub struct BrushOptions {
31- legacy_warning_was_shown : bool ,
3231 diameter : f64 ,
3332 hardness : f64 ,
3433 flow : f64 ,
@@ -41,7 +40,6 @@ pub struct BrushOptions {
4140impl Default for BrushOptions {
4241 fn default ( ) -> Self {
4342 Self {
44- legacy_warning_was_shown : false ,
4543 diameter : DEFAULT_BRUSH_SIZE ,
4644 hardness : 0. ,
4745 flow : 100. ,
@@ -79,7 +77,6 @@ pub enum BrushToolMessageOptionsUpdate {
7977 Hardness ( f64 ) ,
8078 Spacing ( f64 ) ,
8179 WorkingColors ( Option < Color > , Option < Color > ) ,
82- NoDisplayLegacyWarning ,
8380}
8481
8582#[ derive( Clone , Copy , Debug , Default , PartialEq , Eq ) ]
@@ -224,7 +221,6 @@ impl<'a> MessageHandler<ToolMessage, &mut ToolActionMessageContext<'a>> for Brus
224221 self . options . color . primary_working_color = primary;
225222 self . options . color . secondary_working_color = secondary;
226223 }
227- BrushToolMessageOptionsUpdate :: NoDisplayLegacyWarning => self . options . legacy_warning_was_shown = true ,
228224 }
229225
230226 self . send_layout ( responses, LayoutTarget :: ToolOptions ) ;
@@ -322,20 +318,6 @@ impl Fsm for BrushToolFsmState {
322318 document, global_tool_data, input, ..
323319 } = tool_action_data;
324320
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-
339321 let ToolMessage :: Brush ( event) = event else { return self } ;
340322 match ( self , event) {
341323 ( BrushToolFsmState :: Ready , BrushToolMessage :: DragStart ) => {
0 commit comments