Removes a text decoration from the editor.

        :param decoration: Text decoration to remove
        :type decoration: spyder.api.TextDecoration

def remove(self, decoration):
        """
        Removes a text decoration from the editor.

        :param decoration: Text decoration to remove
        :type decoration: spyder.api.TextDecoration
        """
        try:
            self._decorations.remove(decoration)
            self.update()
            return True
        except ValueError:
            return False
        except RuntimeError:
            # This is needed to fix issue 9173
            pass