From 7115e7c4277d9dbe18341532d387345668444f9d Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Wed, 6 Feb 2019 18:06:58 +0100 Subject: [PATCH] build: remove outdated polymer tree benchmark (#28568) The "tree/polymer_leaves" benchmark has no benchmark tests, nor do we install Polymer anywhere. Polymer was previously installed through `bower`, but since we removed bower, there is no easy way to run this benchmark with Polymer. Considering that there are no benchmark tests, nor we have an easy way to install/vendor Polymer, we should just remove this benchmark app. This is also based on the assumption that we want to remove the Polymer benchmarks anyway: see: 8a05199fb9be5ef91ec8094a3c6abc0a65eb6bcd PR Close #28568 --- .../src/tree/polymer_leaves/index.html | 34 ------------------- .../src/tree/polymer_leaves/index.ts | 32 ----------------- .../src/tree/polymer_leaves/tree_leaf.html | 14 -------- 3 files changed, 80 deletions(-) delete mode 100644 modules/benchmarks/src/tree/polymer_leaves/index.html delete mode 100644 modules/benchmarks/src/tree/polymer_leaves/index.ts delete mode 100644 modules/benchmarks/src/tree/polymer_leaves/tree_leaf.html diff --git a/modules/benchmarks/src/tree/polymer_leaves/index.html b/modules/benchmarks/src/tree/polymer_leaves/index.html deleted file mode 100644 index fe51d79feb..0000000000 --- a/modules/benchmarks/src/tree/polymer_leaves/index.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - -

Params

-
- Depth: - -
- -
- -

Polymer Leaves Benchmark

-

- - - - -

- -
- -
- - - - - - diff --git a/modules/benchmarks/src/tree/polymer_leaves/index.ts b/modules/benchmarks/src/tree/polymer_leaves/index.ts deleted file mode 100644 index 6c2549197a..0000000000 --- a/modules/benchmarks/src/tree/polymer_leaves/index.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ - -import {bindAction} from '../../util'; -import {buildTree, flattenTree} from '../util'; - -declare var Polymer: any; - -export function main() { - const rootEl: any = document.querySelector('binary-tree'); - - function destroyDom() { - while (rootEl.firstChild) rootEl.removeChild(rootEl.firstChild); - } - - function createDom() { - const flatTree = flattenTree(buildTree(), []); - for (let i = 0; i < flatTree.length; i++) { - const el: any = document.createElement('tree-leaf'); - el.data = flatTree[i]; - rootEl.appendChild(el); - } - } - - bindAction('#destroyDom', destroyDom); - bindAction('#createDom', createDom); -} diff --git a/modules/benchmarks/src/tree/polymer_leaves/tree_leaf.html b/modules/benchmarks/src/tree/polymer_leaves/tree_leaf.html deleted file mode 100644 index 28f3fce8ff..0000000000 --- a/modules/benchmarks/src/tree/polymer_leaves/tree_leaf.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - -