Remove unused code in App.Cookies

The `removeCookie` function is never called, and the `initialize`
function doesn't do anything. The only functions we use here are
`getCookie` and `saveCookie`.
This commit is contained in:
Javi Martín
2019-07-02 03:50:59 +02:00
parent bf20c93e99
commit a9d28bee15
2 changed files with 0 additions and 7 deletions

View File

@@ -135,7 +135,6 @@ var initialize_modules = function() {
App.SendAdminNotificationAlert.initialize();
App.ModalDownload.initialize();
App.Settings.initialize();
App.Cookies.initialize();
if ( $('#js-columns-selector').length )
App.ColumnsSelector.initialize();
App.BudgetEditAssociations.initialize();

View File

@@ -1,8 +1,5 @@
App.Cookies =
removeCookie: (name) ->
document.cookie("name", null, { path: '/' })
saveCookie: (name, value, days) ->
expires = undefined
if days
@@ -24,6 +21,3 @@ App.Cookies =
c_end = document.cookie.length
return unescape(document.cookie.substring(c_start, c_end))
''
initialize: ->
''