From e3be4b677e2896817cce3ddcd5e3df7007d811b4 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sun, 23 Aug 2020 14:15:58 -0400 Subject: [PATCH] error: Remove some dead code Signed-off-by: Cole Robinson --- virtManager/error.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/virtManager/error.py b/virtManager/error.py index 7c6ba8d6b..b59d7a9f4 100644 --- a/virtManager/error.py +++ b/virtManager/error.py @@ -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)