Skip to content

Commit e409241

Browse files
committed
Drop obsolete route references
The related controller action is gone since b6b5caa
1 parent a6a9261 commit e409241

2 files changed

Lines changed: 0 additions & 36 deletions

File tree

library/Icinga/Application/Modules/Module.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
use ipl\I18n\GettextTranslator;
2121
use ipl\I18n\StaticTranslator;
2222
use ipl\I18n\Translation;
23-
use Zend_Controller_Router_Route;
2423
use Zend_Controller_Router_Route_Abstract;
2524
use Zend_Controller_Router_Route_Regex;
2625

@@ -1341,18 +1340,6 @@ protected function registerRoutes()
13411340
foreach ($this->routes as $name => $route) {
13421341
$router->addRoute($name, $route);
13431342
}
1344-
$router->addRoute(
1345-
$this->name . '_jsprovider',
1346-
new Zend_Controller_Router_Route(
1347-
'js/' . $this->name . '/:file',
1348-
array(
1349-
'action' => 'javascript',
1350-
'controller' => 'static',
1351-
'module' => 'default',
1352-
'module_name' => $this->name
1353-
)
1354-
)
1355-
);
13561343
$router->addRoute(
13571344
$this->name . '_img',
13581345
new Zend_Controller_Router_Route_Regex(

library/Icinga/Application/Web.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use ipl\I18n\StaticTranslator;
1414
use Zend_Controller_Action_HelperBroker;
1515
use Zend_Controller_Front;
16-
use Zend_Controller_Router_Route;
1716
use Zend_Layout;
1817
use Zend_Paginator;
1918
use Zend_View_Helper_PaginationControl;
@@ -82,7 +81,6 @@ protected function bootstrap()
8281
->setupModuleManager()
8382
->loadSetupModuleIfNecessary()
8483
->loadEnabledModules()
85-
->setupRoute()
8684
->setupPagination()
8785
->setupUserBackendFactory()
8886
->setupUser()
@@ -119,27 +117,6 @@ public function getThemes()
119117
return array_combine($themes, $themes);
120118
}
121119

122-
/**
123-
* Prepare routing
124-
*
125-
* @return $this
126-
*/
127-
private function setupRoute()
128-
{
129-
$this->frontController->getRouter()->addRoute(
130-
'module_javascript',
131-
new Zend_Controller_Router_Route(
132-
'js/components/:module_name/:file',
133-
array(
134-
'controller' => 'static',
135-
'action' => 'javascript'
136-
)
137-
)
138-
);
139-
140-
return $this;
141-
}
142-
143120
/**
144121
* Getter for frontController
145122
*

0 commit comments

Comments
 (0)