mirror of https://github.com/gorhill/uBlock.git
Cleanup unused code
Related discussion: - https://github.com/uBlockOrigin/uBlock-issues/issues/1529 - https://github.com/uBlockOrigin/uBlock-issues/discussions/1958#discussioncomment-5257148
This commit is contained in:
parent
b63ced24d4
commit
4b6ce5e402
|
@ -63,7 +63,6 @@ const hiddenSettingsDefault = {
|
|||
cnameIgnoreRootDocument: true,
|
||||
cnameMaxTTL: 120,
|
||||
cnameReplayFullURL: false,
|
||||
cnameUncloak: true,
|
||||
cnameUncloakProxied: false,
|
||||
consoleLogLevel: 'unset',
|
||||
debugScriptlets: false,
|
||||
|
|
|
@ -52,7 +52,6 @@ let filteredLoggerEntryVoidedCount = 0;
|
|||
let popupLoggerBox;
|
||||
let popupLoggerTooltips;
|
||||
let activeTabId = 0;
|
||||
let filterAuthorMode = false;
|
||||
let selectedTabId = 0;
|
||||
let netInspectorPaused = false;
|
||||
let cnameOfEnabled = false;
|
||||
|
@ -1112,8 +1111,6 @@ const onLogBufferRead = function(response) {
|
|||
allTabIdsToken = response.tabIdsToken;
|
||||
}
|
||||
|
||||
filterAuthorMode = response.filterAuthorMode === true;
|
||||
|
||||
if ( activeTabIdChanged ) {
|
||||
pageSelectorFromURLHash();
|
||||
}
|
||||
|
|
|
@ -1605,7 +1605,6 @@ const getLoggerData = async function(details, activeTabId, callback) {
|
|||
activeTabId,
|
||||
colorBlind: µb.userSettings.colorBlindFriendly,
|
||||
entries: logger.readAll(details.ownerId),
|
||||
filterAuthorMode: µb.hiddenSettings.filterAuthorMode,
|
||||
tabIdsToken: µb.pageStoresToken,
|
||||
tooltips: µb.userSettings.tooltipsDisabled === false
|
||||
};
|
||||
|
|
|
@ -238,17 +238,6 @@ const onUserSettingsReady = fetched => {
|
|||
fetched.externalLists.trim().split(/[\n\r]+/);
|
||||
}
|
||||
|
||||
// https://github.com/uBlockOrigin/uBlock-issues/issues/1513
|
||||
// Transition nicely.
|
||||
// TODO: remove when current version of uBO is well past 1.34.0.
|
||||
if ( typeof µb.hiddenSettings.cnameUncloak === false ) {
|
||||
fetched.cnameUncloakEnabled = false;
|
||||
µb.hiddenSettings.cnameUncloak = true;
|
||||
µb.saveHiddenSettings();
|
||||
}
|
||||
µb.hiddenSettingsDefault.cnameUncloak = undefined;
|
||||
µb.hiddenSettings.cnameUncloak = undefined;
|
||||
|
||||
fromFetch(µb.userSettings, fetched);
|
||||
|
||||
if ( µb.privacySettingsSupported ) {
|
||||
|
|
Loading…
Reference in New Issue