Commit bd091d75 authored by Michael Büsch's avatar Michael Büsch

gui: Remove isinstance checks

This avoids failures, if objects are created by cython modules.
Signed-off-by: Michael Büsch's avatarMichael Buesch <m@bues.ch>
parent e6151613
......@@ -370,7 +370,6 @@ class MainWidget(QWidget):
libSelection: The AwlLibEntrySelection() instance.
Returns True, if the selection has successfully been added.
"""
assert(isinstance(libSelection, AwlLibEntrySelection))
return self.projectTreeModel.libSelectionAdd(libSelection,
parentWidget=self)
......
......@@ -529,7 +529,6 @@ class ProjectTreeModel(QAbstractItemModel):
symbol: The Symbol() instance to add.
Returns True, if adding was successfull.
"""
assert(isinstance(symbol, Symbol))
project = self.getProject()
mnemonics = project.getCpuConf().getConfiguredMnemonics()
symTabSources = project.getSymTabSources()
......@@ -601,7 +600,6 @@ class ProjectTreeModel(QAbstractItemModel):
libSelection: The AwlLibEntrySelection() to add.
Returns True, if adding was successfull.
"""
assert(isinstance(libSelection, AwlLibEntrySelection))
project = self.getProject()
libSelections = project.getLibSelections()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment