commit/nvda: norrumar: Removed dummy isPendingRemoval function from gui.

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Mon, 10 Nov 2014 11:32:45 -0000

1 new commit in nvda:

https://bitbucket.org/nvdaaddonteam/nvda/commits/b8d5cd8d89fe/
Changeset:   b8d5cd8d89fe
Branch:      t4354
User:        norrumar
Date:        2014-11-10 11:32:15+00:00
Summary:     Removed dummy isPendingRemoval function from gui.

Affected #:  1 file

diff --git a/source/gui/settingsDialogs.py b/source/gui/settingsDialogs.py
index 9687a33..c0277d4 100644
--- a/source/gui/settingsDialogs.py
+++ b/source/gui/settingsDialogs.py
@@ -1596,18 +1596,14 @@ class SpeechSymbolsDialog(SettingsDialog):
                else:
                        evt.Skip()
 
-       def isPendingRemoval(self, symbol):
-               return any(symbol.identifier for symbol in self.pendingRemovals)
-
        def OnAddClick(self,evt):
                # Translators: This is the label for the add symbol dialog.
                entryDialog=AddSymbolDialog(self)
                if entryDialog.ShowModal()==wx.ID_OK:
                        addedSymbol = 
characterProcessing.SpeechSymbol(entryDialog.identifierTextCtrl.GetValue())
-                       if self.isPendingRemoval(addedSymbol):
-                               for index, symbol in 
enumerate(self.pendingRemovals):
-                                       if symbol.identifier == 
addedSymbol.identifier:
-                                               del self.pendingRemovals[index]
+                       for index, symbol in enumerate(self.pendingRemovals):
+                               if symbol.identifier == addedSymbol.identifier:
+                                       del self.pendingRemovals[index]
                        addedSymbol.displayName = 
entryDialog.identifierTextCtrl.GetValue()
                        addedSymbol.replacement = ""
                        addedSymbol.level = characterProcessing.SYMLVL_ALL

Repository URL: https://bitbucket.org/nvdaaddonteam/nvda/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.

Other related posts:

  • » commit/nvda: norrumar: Removed dummy isPendingRemoval function from gui. - commits-noreply