Skip to content

Commit

Permalink
Remove redundant function getAllTags in builders.controller.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rajgoesout committed Jul 20, 2019
1 parent 3a084f7 commit 3fb462e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions www/base/src/app/builders/builders.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,6 @@ class Builders {
, true);
const buildFetchLimit = $scope.settings.buildFetchLimit.value;

$scope.getAllTags = function() {
const all_tags = [];
for (let builder of Array.from($scope.builders)) {
if ($scope.hasActiveMaster(builder)) {
for (let tag of Array.from(builder.tags)) {
if (all_tags.indexOf(tag) < 0) {
all_tags.push(tag);
}
}
}
}
all_tags.sort();
return all_tags;
};

const updateTagsFilterFromLocation = function() {
$scope.tags_filter = $location.search()["tags"];
if ($scope.tags_filter == null) { $scope.tags_filter = []; }
Expand Down

0 comments on commit 3fb462e

Please sign in to comment.