File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
pagetop/src/core/component Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -39,24 +39,15 @@ pub trait ComponentTrait: ComponentBase + HasHandle + Send + Sync {
39
39
true
40
40
}
41
41
42
- #[ allow( unused_variables) ]
43
- fn before_prepare_component ( & mut self , cx : & mut Context ) { }
44
-
45
42
#[ allow( unused_variables) ]
46
43
fn prepare_component ( & self , cx : & mut Context ) -> PrepareMarkup {
47
44
PrepareMarkup :: None
48
45
}
49
-
50
- #[ allow( unused_variables) ]
51
- fn after_prepare_component ( & mut self , cx : & mut Context ) { }
52
46
}
53
47
54
48
impl < C : ComponentTrait > ComponentBase for C {
55
49
fn render ( & mut self , cx : & mut Context ) -> Markup {
56
50
if self . is_renderable ( cx) {
57
- // Acciones antes de preparar el componente.
58
- self . before_prepare_component ( cx) ;
59
-
60
51
// Acciones del tema antes de preparar el componente.
61
52
cx. theme ( ) . before_prepare_component ( self , cx) ;
62
53
@@ -76,9 +67,6 @@ impl<C: ComponentTrait> ComponentBase for C {
76
67
} ,
77
68
} ;
78
69
79
- // Acciones después de preparar el componente.
80
- self . after_prepare_component ( cx) ;
81
-
82
70
// Acciones del tema después de preparar el componente.
83
71
cx. theme ( ) . after_prepare_component ( self , cx) ;
84
72
You can’t perform that action at this time.
0 commit comments