diff --git a/horizon/static/framework/util/filters/filters.js b/horizon/static/framework/util/filters/filters.js index c9b0e929ee..5681df4288 100644 --- a/horizon/static/framework/util/filters/filters.js +++ b/horizon/static/framework/util/filters/filters.js @@ -163,18 +163,6 @@ var format = ngettext('Displaying %s item', 'Displaying %s items', count); return interpolate(format, [count]); }; - }) + }); - /** - * @ngdoc filter - * @name trans - * @description - * Returns translated text. - */ - .filter('trans', ['horizon.framework.util.i18n.gettext', function (gettextFunc) { - return function (input) { - // NOTE: uses 'gettextFunc' to avoid message collection. - return gettextFunc(input); - }; - }]); }()); diff --git a/horizon/static/framework/util/filters/filters.spec.js b/horizon/static/framework/util/filters/filters.spec.js index 7734bfdd0a..f167b28173 100644 --- a/horizon/static/framework/util/filters/filters.spec.js +++ b/horizon/static/framework/util/filters/filters.spec.js @@ -202,10 +202,5 @@ ); }); - describe('trans', function () { - it('should return translated text', inject(function (transFilter) { - expect(transFilter("Howdy")).toBe("Howdy"); - })); - }); - }); -})(); + }); // end of horizon.framework.util.filters +})(); // end of IIFE