diff --git a/src/_h5ai/client/js/inc/core/resource.js b/src/_h5ai/client/js/inc/core/resource.js index af9ccebf..b8bb0150 100644 --- a/src/_h5ai/client/js/inc/core/resource.js +++ b/src/_h5ai/client/js/inc/core/resource.js @@ -34,26 +34,6 @@ modulejs.define('core/resource', ['_', '$', 'config', 'core/settings'], function return fallbackHref + 'file.svg'; }; - // loadScript = function (filename, callback) { - - // $.ajax({ - // url: scriptsHref + filename, - // dataType: 'script' - // }).done(function () { - - // callback(); - // }); - // }, - - // loadScriptGlob = function (filename, globalId, callback) { - - // if (win[globalId]) { - // callback(win[globalId]); - // } else { - // loadScript(filename, function () { callback(win[globalId]); }); - // } - // }; - return { image: image, diff --git a/src/_h5ai/client/js/inc/ext/preview-txt.js b/src/_h5ai/client/js/inc/ext/preview-txt.js index 06d5df7d..07f4006a 100644 --- a/src/_h5ai/client/js/inc/ext/preview-txt.js +++ b/src/_h5ai/client/js/inc/ext/preview-txt.js @@ -9,43 +9,6 @@ modulejs.define('ext/preview-txt', ['_', '$', 'marked', 'prism', 'core/settings' templateText = '
', templateMarkdown = '
', - // adapted from SyntaxHighlighter - getHighlightedLines = function (sh, alias, content) { - - var brushes = sh.vars.discoveredBrushes, - Brush, brush; - - if (!brushes) { - brushes = {}; - - _.each(sh.brushes, function (info, brush) { - - var aliases = info.aliases; - - if (aliases) { - info.brushName = brush.toLowerCase(); - - for (var i = 0; i < aliases.length; i += 1) { - brushes[aliases[i]] = brush; - } - } - }); - - sh.vars.discoveredBrushes = brushes; - } - - Brush = sh.brushes[brushes[alias || 'plain']]; - - if (!Brush) { - return $(); - } - - brush = new Brush(); - brush.init({toolbar: false, gutter: false}); - - return $(brush.getHtml(content)).find('.line'); - }, - preloadText = function (absHref, callback) { $.ajax({ diff --git a/src/_h5ai/client/js/syntaxhighlighter.js b/src/_h5ai/client/js/syntaxhighlighter.js deleted file mode 100644 index 1e2954bf..00000000 --- a/src/_h5ai/client/js/syntaxhighlighter.js +++ /dev/null @@ -1,3 +0,0 @@ - -// @include "lib/sh/shCore.js" -// @include "lib/sh/shBrush*.js"