Remove (broken) benchmark pane

This commit is contained in:
Raymond Hill 2018-12-21 12:01:24 -05:00
parent 2849dbb805
commit 610ca2684b
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
5 changed files with 1 additions and 18 deletions

View File

@ -76,9 +76,6 @@ iframe {
body:not(.canUpdateShortcuts) .tabButton[href="#shortcuts.html"] { body:not(.canUpdateShortcuts) .tabButton[href="#shortcuts.html"] {
display: none; display: none;
} }
body:not(.canBenchmark) .tabButton[href="#benchmarks.html"] {
display: none;
}
@media (max-width: 640px) { @media (max-width: 640px) {
#dashboard-nav { #dashboard-nav {

View File

@ -19,8 +19,7 @@
--><a class="tabButton" href="#dyna-rules.html" data-i18n="rulesPageName"></a><!-- --><a class="tabButton" href="#dyna-rules.html" data-i18n="rulesPageName"></a><!--
--><a class="tabButton" href="#whitelist.html" data-i18n="whitelistPageName"></a><!-- --><a class="tabButton" href="#whitelist.html" data-i18n="whitelistPageName"></a><!--
--><a class="tabButton" href="#shortcuts.html" data-i18n="shortcutsPageName"></a><!-- --><a class="tabButton" href="#shortcuts.html" data-i18n="shortcutsPageName"></a><!--
--><a class="tabButton" href="#about.html" data-i18n="aboutPageName"></a><!-- --><a class="tabButton" href="#about.html" data-i18n="aboutPageName"></a>
--><a class="tabButton" href="#benchmarks.html">Benchmarks</a>
</div> </div>
</div> </div>

View File

@ -42,7 +42,6 @@ const µBlock = (function() { // jshint ignore:line
assetFetchTimeout: 30, assetFetchTimeout: 30,
autoUpdateAssetFetchPeriod: 120, autoUpdateAssetFetchPeriod: 120,
autoUpdatePeriod: 7, autoUpdatePeriod: 7,
benchmarkingPane: false,
cacheStorageCompression: true, cacheStorageCompression: true,
cacheControlForFirefox1376932: 'no-cache, no-store, must-revalidate', cacheControlForFirefox1376932: 'no-cache, no-store, must-revalidate',
debugScriptlets: false, debugScriptlets: false,

View File

@ -74,10 +74,6 @@ vAPI.messaging.send('dashboard', { what: 'canUpdateShortcuts' }, response => {
document.body.classList.toggle('canUpdateShortcuts', response === true); document.body.classList.toggle('canUpdateShortcuts', response === true);
}); });
vAPI.messaging.send('dashboard', { what: 'benchmarkingPane' }, response => {
document.body.classList.toggle('canBenchmark', response === true);
});
resizeFrame(); resizeFrame();
window.addEventListener('resize', resizeFrame); window.addEventListener('resize', resizeFrame);
uDom('.tabButton').on('click', onTabClickHandler); uDom('.tabButton').on('click', onTabClickHandler);

View File

@ -1041,14 +1041,6 @@ var onMessage = function(request, sender, callback) {
var response; var response;
switch ( request.what ) { switch ( request.what ) {
case 'benchmark':
response = µb.staticNetFilteringEngine.benchmark(request.contexts);
break;
case 'benchmarkingPane':
response = µb.hiddenSettings.benchmarkingPane;
break;
case 'canUpdateShortcuts': case 'canUpdateShortcuts':
response = µb.canUpdateShortcuts; response = µb.canUpdateShortcuts;
break; break;