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:
@@ -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();
|
||||
|
||||
@@ -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: ->
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user