From 444956d51780b1d4ffe93ffb47fdd0f5f8a9c53b Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 4 Mar 2014 17:16:12 -0500 Subject: [PATCH] deprecated loadTemplates client-side as well --- public/src/templates.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/public/src/templates.js b/public/src/templates.js index 0c9253c496..a1d42f0b4c 100644 --- a/public/src/templates.js +++ b/public/src/templates.js @@ -46,14 +46,6 @@ return template; }; - function loadTemplates(templatesToLoad, customTemplateDir) { - $.when($.getJSON(RELATIVE_PATH + '/templates/config.json'), $.getJSON(RELATIVE_PATH + '/api/get_templates_listing')).done(function (config_data, templates_data) { - config = config_data[0]; - available_templates = templates_data[0]; - templates.ready(); - }); - } - templates.render = function(filename, options, fn) { if ('function' === typeof options) { fn = options, options = false; @@ -86,7 +78,6 @@ }; templates.preload_template = function(tpl_name, callback) { - if(templates[tpl_name]) { return callback(); }