1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

GIT_SILENT SiteSettings: Remove unused method

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2022-09-05 22:10:52 +02:00
parent 2e3e3749b4
commit 6f0249f78b
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B
2 changed files with 0 additions and 19 deletions

View File

@ -305,24 +305,6 @@ void SiteSettingsManager::setDefaultPermission(const QWebEnginePage::Feature& fe
setDefaultPermission(option, value);
}
bool SiteSettingsManager::getDefaultOptionValue(const SiteSettingsManager::PageOptions& option)
{
switch (option) {
case poAllowJavascript:
return mApp->webSettings()->testAttribute(QWebEngineSettings::JavascriptEnabled);
case poAllowImages:
return mApp->webSettings()->testAttribute(QWebEngineSettings::AutoLoadImages);
/* At the moment, no idea */
case poAllowCookies:
return false;
case poZoomLevel:
return false;
default:
qWarning() << "Unknown option" << option;
return false;
}
}
SiteSettingsManager::PageOptions SiteSettingsManager::optionFromWebEngineFeature(const QWebEnginePage::Feature& feature) const
{
switch (feature) {

View File

@ -116,7 +116,6 @@ public:
private:
QString optionToSqlColumn(const PageOptions &option);
bool getDefaultOptionValue(const PageOptions &option);
PageOptions optionFromWebEngineFeature(const QWebEnginePage::Feature &feature) const;
Permission testAttribute(const QWebEngineSettings::WebAttribute attribute) const;
Permission intToPermission(const int permission) const;