summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPyfisch <pyfisch@gmail.com>2014-09-05 12:39:35 +0200
committerPyfisch <pyfisch@gmail.com>2014-09-05 12:39:35 +0200
commit64d5d4aec7932e8a17463c6784b69be0b4254d27 (patch)
treef1eeb4a6e54f5e839b93b0884a34f02e9cfd0ac2
parent619a6b2adb00b29b1aea7d2c71fb6d0c7e7dde8c (diff)
Removed unused `shortPath` filter from app.js.
-rw-r--r--gui/app.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/gui/app.js b/gui/app.js
index ed6cb365cd..427ab021d8 100644
--- a/gui/app.js
+++ b/gui/app.js
@@ -1052,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)