Showing
1 changed file
with
0 additions
and
16 deletions
@@ -174,22 +174,6 @@ class ParseRouteTree { | @@ -174,22 +174,6 @@ class ParseRouteTree { | ||
174 | } | 174 | } |
175 | } | 175 | } |
176 | 176 | ||
177 | - void handleChild(GetPage route) { | ||
178 | - final children = route.children; | ||
179 | - for (var child in children) { | ||
180 | - final middlewares = List.of(route.middlewares); | ||
181 | - final bindings = List.of(route.bindings); | ||
182 | - middlewares.addAll(child.middlewares); | ||
183 | - bindings.addAll(child.bindings); | ||
184 | - child = child.copyWith(middlewares: middlewares, bindings: bindings); | ||
185 | - if (child.inheritParentPath) { | ||
186 | - child = child.copyWith( | ||
187 | - name: ('${route.path}/${child.path}').replaceAll(r'//', '/')); | ||
188 | - } | ||
189 | - addRoute(child); | ||
190 | - } | ||
191 | - } | ||
192 | - | ||
193 | List<GetPage> _flattenPage(GetPage route) { | 177 | List<GetPage> _flattenPage(GetPage route) { |
194 | final result = <GetPage>[]; | 178 | final result = <GetPage>[]; |
195 | if (route.children.isEmpty) { | 179 | if (route.children.isEmpty) { |
-
Please register or login to post a comment