Skip to content

Commit

Permalink
report: remove some dead code (#9800)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark authored and paulirish committed Nov 6, 2019
1 parent bf14c9a commit ceb31b2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
11 changes: 0 additions & 11 deletions lighthouse-core/report/html/renderer/report-ui-features.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ class ReportUIFeatures {
this.onCopy = this.onCopy.bind(this);
this.onDropDownMenuClick = this.onDropDownMenuClick.bind(this);
this.onKeyUp = this.onKeyUp.bind(this);
this.onChevronClick = this.onChevronClick.bind(this);
this.collapseAllDetails = this.collapseAllDetails.bind(this);
this.expandAllDetails = this.expandAllDetails.bind(this);
this._toggleDarkTheme = this._toggleDarkTheme.bind(this);
Expand Down Expand Up @@ -361,16 +360,6 @@ class ReportUIFeatures {
}
}

onChevronClick() {
const toggle = this._dom.find('.lh-config__settings-toggle', this._document);

if (toggle.hasAttribute('open')) {
toggle.removeAttribute('open');
} else {
toggle.setAttribute('open', 'true');
}
}

/**
* Resets the state of page before capturing the page for export.
* When the user opens the exported HTML page, certain UI elements should
Expand Down
23 changes: 0 additions & 23 deletions lighthouse-core/report/html/templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -394,29 +394,6 @@
<!-- Lighthouse header -->
<template id="tmpl-lh-heading">
<style>
/*
TODO: Enable animating the clouds
.lh-lighthouse__clouds {
animation: panacross 30s linear infinite;
animation-play-state: paused;
}
@keyframes panacross {
0% { transform: translateX(0px); }
77% { transform: translateX(-680px); }
77.0001% { transform: translateX(195px); }
100% { transform: translateX(0px); }
} */

.score100 .lh-header-bg {
background-color: hsl(234, 64%, 19%);
}
.score100 .lh-metadata, .score100 .lh-toolbar__metadata, .score100 .lh-product-info {
color: #fff;
}
.score100 .lh-config {
color: #eee;
}

/* CSS Fireworks. Originally by Eddie Lin
https://codepen.io/paulirish/pen/yEVMbP
*/
Expand Down

0 comments on commit ceb31b2

Please sign in to comment.