diff --git a/gui/app.js b/gui/app.js index 511bddb1..b28b6d0a 100644 --- a/gui/app.js +++ b/gui/app.js @@ -1043,12 +1043,6 @@ syncthing.filter('metric', function () { }; }); -syncthing.filter('short', function () { - return function (input) { - return input.substr(0, 6); - }; -}); - syncthing.filter('alwaysNumber', function () { return function (input) { if (input === undefined) { @@ -1058,18 +1052,6 @@ syncthing.filter('alwaysNumber', function () { }; }); -syncthing.filter('shortPath', function () { - return function (input) { - if (input === undefined) - return ""; - var parts = input.split(/[\/\\]/); - if (!parts || parts.length <= 3) { - return input; - } - return ".../" + parts.slice(parts.length-2).join("/"); - }; -}); - syncthing.filter('basename', function () { return function (input) { if (input === undefined) @@ -1082,24 +1064,6 @@ syncthing.filter('basename', function () { }; }); -syncthing.filter('clean', function () { - return function (input) { - return encodeURIComponent(input).replace(/%/g, ''); - }; -}); - -syncthing.directive('optionEditor', function () { - return { - restrict: 'C', - replace: true, - transclude: true, - scope: { - setting: '=setting', - }, - template: '', - }; -}); - syncthing.directive('uniqueRepo', function() { return { require: 'ngModel',