Removed unnecessary global variables

Removed three variables set to global, which were all used only in their
respective "main" function.
This commit is contained in:
Marta Marczykowska-Górecka 2017-11-09 16:39:30 +01:00
parent b7060e76b2
commit ff4ee713b1
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B
3 changed files with 0 additions and 7 deletions

View File

@ -114,8 +114,6 @@ class VMBootFromDeviceWindow(ui_bootfromdevice.Ui_BootDialog, QtGui.QDialog):
parser = firewall.qubesadmin.tools.QubesArgumentParser(vmname_nargs=1)
def main(args=None):
global bootfromdevice_window
args = parser.parse_args(args)
vm = args.domains.pop()

View File

@ -314,8 +314,6 @@ def handle_exception(exc_type, exc_value, exc_traceback):
def main():
global qtapp
qtapp = QtGui.QApplication(sys.argv)
qtapp.setOrganizationName("The Qubes Project")
qtapp.setOrganizationDomain("http://qubes-os.org")
@ -325,7 +323,6 @@ def main():
app = Qubes()
global global_window
global_window = GlobalSettingsWindow(qtapp, app)
global_window.show()

View File

@ -954,8 +954,6 @@ parser.set_defaults(
)
def main(args=None):
global settings_window
args = parser.parse_args(args)
vm = args.domains.pop()