mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
error: Remove some dead code
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
2f4aa652d3
commit
e3be4b677e
@ -170,11 +170,6 @@ class vmmErrorDialog(vmmGObject):
|
||||
buttons = Gtk.ButtonsType.OK_CANCEL
|
||||
return self._simple_dialog(dtype, buttons, text1, text2, title)
|
||||
|
||||
def ok(self, text1, text2=None, title=None):
|
||||
dtype = Gtk.MessageType.WARNING
|
||||
buttons = Gtk.ButtonsType.OK
|
||||
return self._simple_dialog(dtype, buttons, text1, text2, title)
|
||||
|
||||
def confirm_unapplied_changes(self):
|
||||
"""
|
||||
Helper function for confirming whether to apply unapplied changes
|
||||
@ -238,7 +233,7 @@ class vmmErrorDialog(vmmGObject):
|
||||
|
||||
def browse_local(self, conn, dialog_name, start_folder=None,
|
||||
_type=None, dialog_type=None,
|
||||
confirm_func=None, browse_reason=None,
|
||||
browse_reason=None,
|
||||
choose_button=None, default_name=None):
|
||||
"""
|
||||
Helper function for launching a filechooser
|
||||
@ -248,7 +243,6 @@ class vmmErrorDialog(vmmGObject):
|
||||
@start_folder: Folder the filechooser is viewing at startup
|
||||
@_type: File extension to filter by (e.g. "iso", "png")
|
||||
@dialog_type: Maps to FileChooserDialog 'action'
|
||||
@confirm_func: Optional callback function if file is chosen.
|
||||
@browse_reason: The vmmConfig.CONFIG_DIR* reason we are browsing.
|
||||
If set, this will override the 'folder' parameter with the gsettings
|
||||
value, and store the user chosen path.
|
||||
@ -280,10 +274,6 @@ class vmmErrorDialog(vmmGObject):
|
||||
if default_name:
|
||||
fcdialog.set_current_name(default_name)
|
||||
|
||||
# If confirm is set, warn about a file overwrite
|
||||
if confirm_func:
|
||||
overwrite_confirm = True
|
||||
fcdialog.connect("confirm-overwrite", confirm_func)
|
||||
fcdialog.set_do_overwrite_confirmation(overwrite_confirm)
|
||||
|
||||
# Set file match pattern (ex. *.png)
|
||||
|
Loading…
Reference in New Issue
Block a user