From 78d086e3bdd5b5dde24423194deb1b5633fdf481 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 28 Jan 2015 14:16:56 +0100 Subject: [PATCH] SONAR-6098 remove log statements --- .../views/coding-rules-detail-view.coffee | 1 - .../coffee/issues/facets/assignee-facet.coffee | 1 - server/sonar-web/src/main/js/application.js | 1 - .../js/navigator/filters/ajax-select-filters.js | 1 - server/sonar-web/src/main/js/translate.js | 14 -------------- 5 files changed, 18 deletions(-) diff --git a/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee b/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee index d9697a317d3..6d8e9bf11da 100644 --- a/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee +++ b/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee @@ -211,7 +211,6 @@ define [ if @ui.tagsList.show @ui.tagsList.show() if @ui.tagInput.select2 - console.log @tagsBuffer @ui.tagInput.select2 'val', @tagsBuffer @ui.tagInput.select2 'close' if @ui.tagsEdit.hide diff --git a/server/sonar-web/src/main/coffee/issues/facets/assignee-facet.coffee b/server/sonar-web/src/main/coffee/issues/facets/assignee-facet.coffee index 7e3cc59ce32..c2f1e99ac65 100644 --- a/server/sonar-web/src/main/coffee/issues/facets/assignee-facet.coffee +++ b/server/sonar-web/src/main/coffee/issues/facets/assignee-facet.coffee @@ -68,7 +68,6 @@ define [ # put "unassigned" first _.sortBy values, (v) -> x = if v.val == '' then -999999 else -v.count - console.log v.val, x x diff --git a/server/sonar-web/src/main/js/application.js b/server/sonar-web/src/main/js/application.js index 629f45e7612..abf173cdcd3 100644 --- a/server/sonar-web/src/main/js/application.js +++ b/server/sonar-web/src/main/js/application.js @@ -250,7 +250,6 @@ function openAccordionItem(url) { }).fail(function (jqXHR, textStatus) { var error = 'Server error. Please contact your administrator. The status of the error is : ' + jqXHR.status + ', textStatus is : ' + textStatus; - console.log(error); $j('#accordion-panel').append($j('
').append(error)); }).done(function (html) { var panel = $j('#accordion-panel'); diff --git a/server/sonar-web/src/main/js/navigator/filters/ajax-select-filters.js b/server/sonar-web/src/main/js/navigator/filters/ajax-select-filters.js index 4037f7172b9..6e4834919e6 100644 --- a/server/sonar-web/src/main/js/navigator/filters/ajax-select-filters.js +++ b/server/sonar-web/src/main/js/navigator/filters/ajax-select-filters.js @@ -150,7 +150,6 @@ define([ that.$('.navigator-filter-search').removeClass('fetching-error'); }, error: function() { - console.log(arguments); that.showSearchError(); } }); diff --git a/server/sonar-web/src/main/js/translate.js b/server/sonar-web/src/main/js/translate.js index 9daa77f8899..03ad0997282 100644 --- a/server/sonar-web/src/main/js/translate.js +++ b/server/sonar-web/src/main/js/translate.js @@ -1,12 +1,6 @@ (function() { window.suppressTranslationWarnings = false; - var warn = function(message) { - if (!window.suppressTranslationWarnings && console != null && typeof console.warn === 'function') { - console.warn(message); - } - }; - window.t = function() { if (!window.messages) { return window.translate.apply(this, arguments); @@ -14,9 +8,6 @@ var args = Array.prototype.slice.call(arguments, 0), key = args.join('.'); - if (!window.messages[key]) { - warn('No translation for "' + key + '"'); - } return (window.messages && window.messages[key]) || key; }; @@ -28,8 +19,6 @@ args.forEach(function(p, i) { message = message.replace('{' + i + '}', p); }); - } else { - warn('No translation for "' + key + '"'); } return message || ''; }; @@ -48,13 +37,10 @@ if (found) { result = tokens.reduce(function(prev, current) { if (!current || !prev[current]) { - warn('No translation for "' + key + '"'); found = false; } return current ? prev[current] : prev; }, start); - } else { - warn('No translation for "' + key + '"'); } return found ? result : key; -- 2.39.5