[Pkg-privacy-commits] [tails-installer] 19/27: Remove the option related stuff - there are no options

Intrigeri intrigeri at moszumanska.debian.org
Wed May 24 15:26:59 UTC 2017


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to tag 3.91.0
in repository tails-installer.

commit 64d1e2296afa645c17ef20b10af07962db34f5f2
Author: Martin Briza <mbriza at redhat.com>
Date:   Fri Mar 11 12:07:54 2016 +0100

    Remove the option related stuff - there are no options
---
 liveusb/gui.py | 35 +----------------------------------
 1 file changed, 1 insertion(+), 34 deletions(-)

diff --git a/liveusb/gui.py b/liveusb/gui.py
index faedfae..2e6ca81 100755
--- a/liveusb/gui.py
+++ b/liveusb/gui.py
@@ -430,7 +430,7 @@ class Release(QObject):
         self.infoChanged.emit()
         self.errorChanged.emit()
         self.warningChanged.emit()
-        
+
         self.addInfo(_('After you have tried or installed Fedora, you can use Fedora Media Writer to restore your flash drive to its factory settings.'))
 
         self._writer.run()
@@ -724,13 +724,6 @@ class LiveUSBData(QObject):
     _currentIndex = 0
     _currentDrive = 0
 
-    # man, this is just awkward... but it seems like the only way to do it in a predictable manner without creating a new class
-    _optionKeys = []
-    _optionNames = {
-                   }
-    _optionValues = {
-                    }
-
     def __init__(self, opts):
         QObject.__init__(self)
         self.live = LiveUSBCreator(opts=opts)
@@ -845,32 +838,6 @@ class LiveUSBData(QObject):
             for r in self.releaseData:
                 r.download.finished = False
 
-    @pyqtProperty('QStringList', constant=True)
-    def optionNames(self):
-        ret = []
-        for i in self._optionKeys:
-            ret.append(self._optionNames[i])
-        return ret
-
-    @pyqtProperty('QVariant', notify=optionsChanged)
-    def optionValues(self):
-        ret = []
-        for i in self._optionKeys:
-            ret.append(self._optionValues[i])
-        return ret
-
-    @pyqtSlot(int, bool)
-    def setOption(self, index, value):
-        key = self._optionKeys[index]
-        if self._optionValues[key] != value:
-            self._optionValues[key] = value
-            self.optionsChanged.emit()
-
-    @pyqtSlot()
-    def option(self, index):
-        return self._optionValues[index]
-
-
 class LiveUSBApp(QGuiApplication):
     """ Main application class """
     def __init__(self, opts, args):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git



More information about the Pkg-privacy-commits mailing list