]> xmof Git - DeDRM.git/commitdiff
Remove the unused rename_key() method
authorChristian Clauss <cclauss@me.com>
Thu, 23 Jan 2020 12:24:45 +0000 (13:24 +0100)
committerGitHub <noreply@github.com>
Thu, 23 Jan 2020 12:24:45 +0000 (13:24 +0100)
obok_src/config.py

index ae4edc01da27d54e832ecf3793289a594cdac9fd..645c9e3f925157cad0f722d9f15511c98b5975e4 100644 (file)
@@ -145,28 +145,6 @@ class ManageKeysDialog(QDialog):
         self.listy.clear()
         self.populate_list()
 
-    def rename_key(self):
-        if not self.listy.currentItem():
-            errmsg = u"No {0} selected to rename. Highlight a keyfile first.".format(self.key_type_name)
-            r = error_dialog(None, "{0} {1}".format(PLUGIN_NAME, PLUGIN_VERSION),
-                                    _(errmsg), show=True, show_copy_button=False)
-            return
-
-        d = RenameKeyDialog(self)
-        d.exec_()
-
-        if d.result() != d.Accepted:
-            # rename cancelled or moot.
-            return
-        keyname = unicode(self.listy.currentItem().text())
-        if not question_dialog(self, "{0} {1}: Confirm Rename".format(PLUGIN_NAME, PLUGIN_VERSION), u"Do you really want to rename the {2} named <strong>{0}</strong> to <strong>{1}</strong>?".format(keyname,d.key_name,self.key_type_name), show_copy_button=False, default_yes=False):
-            return
-        self.plugin_keys[d.key_name] = self.plugin_keys[keyname]
-        del self.plugin_keys[keyname]
-
-        self.listy.clear()
-        self.populate_list()
-
     def delete_key(self):
         if not self.listy.currentItem():
             return