From 2ffe9ae885831f0e79220c48362507e715c19bfb Mon Sep 17 00:00:00 2001 From: jngibbon Date: Sun, 6 Jun 2021 22:28:45 +0200 Subject: [PATCH] Remove some unused code/comments and a few empty lines --- qml/components/settingsPage/Accordion.qml | 5 ----- qml/components/settingsPage/AccordionItem.qml | 9 --------- qml/components/settingsPage/ResponsiveGrid.qml | 2 -- qml/components/settingsPage/SettingsBehavior.qml | 1 - qml/components/settingsPage/SettingsPrivacy.qml | 1 - 5 files changed, 18 deletions(-) diff --git a/qml/components/settingsPage/Accordion.qml b/qml/components/settingsPage/Accordion.qml index 49ab79a..6d1d942 100644 --- a/qml/components/settingsPage/Accordion.qml +++ b/qml/components/settingsPage/Accordion.qml @@ -39,9 +39,4 @@ Column { property: "contentY" duration: 200 } - onSetActiveArea: { - if(activeAreaTitle && flickable) { -// flickable.scrollToTop(); - } - } } diff --git a/qml/components/settingsPage/AccordionItem.qml b/qml/components/settingsPage/AccordionItem.qml index 8dbbaaa..1a5cf4f 100644 --- a/qml/components/settingsPage/AccordionItem.qml +++ b/qml/components/settingsPage/AccordionItem.qml @@ -103,13 +103,4 @@ Item { asynchronous: true clip: true } -// Column { -// id: content -// width: parent.width -// anchors.top: button.bottom -// bottomPadding: Theme.paddingLarge -// height: 0 -// opacity: 0 -// clip: true -// } } diff --git a/qml/components/settingsPage/ResponsiveGrid.qml b/qml/components/settingsPage/ResponsiveGrid.qml index 68a5d52..1d1bb55 100644 --- a/qml/components/settingsPage/ResponsiveGrid.qml +++ b/qml/components/settingsPage/ResponsiveGrid.qml @@ -23,7 +23,5 @@ import Sailfish.Silica 1.0 Grid { width: parent.width - ( 2 * x ) columns: (appWindow.deviceOrientation & Orientation.LandscapeMask) || Screen.sizeCategory === Screen.Large || Screen.sizeCategory === Screen.ExtraLarge ? 2 : 1 - readonly property real columnWidth: width/columns - } diff --git a/qml/components/settingsPage/SettingsBehavior.qml b/qml/components/settingsPage/SettingsBehavior.qml index a3f1be1..f0b2ea2 100644 --- a/qml/components/settingsPage/SettingsBehavior.qml +++ b/qml/components/settingsPage/SettingsBehavior.qml @@ -165,7 +165,6 @@ AccordionItem { } Behavior on height { SmoothedAnimation { duration: 200 } } } - } } } diff --git a/qml/components/settingsPage/SettingsPrivacy.qml b/qml/components/settingsPage/SettingsPrivacy.qml index 40a2ca0..b085d4b 100644 --- a/qml/components/settingsPage/SettingsPrivacy.qml +++ b/qml/components/settingsPage/SettingsPrivacy.qml @@ -263,5 +263,4 @@ AccordionItem { } } } - }