Commit 73edfb6a authored by Robert Knight's avatar Robert Knight

Remove unused $location service

This built-in Angular service is no longer used, so remove the code to
configure it and expose it to other services.
parent 130b1fbb
......@@ -53,12 +53,6 @@ const isSidebar = !(
window.location.pathname.startsWith('/a/')
);
// @ngInject
function configureLocation($locationProvider) {
// Use HTML5 history
return $locationProvider.html5Mode(true);
}
// @ngInject
function configureToastr(toastrConfig) {
angular.extend(toastrConfig, {
......@@ -233,10 +227,9 @@ function startAngularApp(config) {
// constructed them.
//
// @ngInject
function registerAngularServices($location, $rootScope, toastr) {
function registerAngularServices($rootScope, toastr) {
container
.register('toastr', { value: toastr })
.register('$location', { value: $location })
.register('$rootScope', { value: $rootScope });
}
......@@ -313,7 +306,6 @@ function startAngularApp(config) {
.value('isSidebar', container.get('isSidebar'))
.value('settings', container.get('settings'))
.config(configureLocation)
.config(configureToastr)
// Make Angular built-ins available to services constructed by `container`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment