Skip to content

Commit 89028ad

Browse files
Deleted the now deprecated NGApplication.routeTable()
1 parent e287d2a commit 89028ad

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

ng-appserver/src/main/java/ng/appserver/NGApplication.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,6 @@ public NGApplication() {
210210
_sessionStore = new NGServerSessionStore();
211211
_exceptionManager = new NGExceptionManager( this );
212212
_urlRewritePatterns = new ArrayList<>();
213-
214-
// The first table in the list is the "user route table"
215-
_routeTables.add( new NGRouteTable( "User routes" ) );
216213
}
217214

218215
@Override
@@ -351,21 +348,13 @@ public NGProperties properties() {
351348
return _properties;
352349
}
353350

354-
/**
355-
* @return The default route table.
356-
*/
357-
@Deprecated
358-
public NGRouteTable routeTable() {
359-
return _routeTables.get( 0 );
360-
}
361-
362351
/**
363352
* @return a request handler for the given route, by searching all route tables
364353
*
365354
* FIXME: This belongs in a routing related class // Hugi 2022-10-16
366355
*/
367356
private NGRequestHandler handlerForURL( String url ) {
368-
for( NGRouteTable routeTable : _routeTables ) {
357+
for( final NGRouteTable routeTable : _routeTables ) {
369358
final NGRequestHandler handler = routeTable.handlerForURL( url );
370359

371360
if( handler != null ) {

0 commit comments

Comments
 (0)