Removes a text decoration from the editor.

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

        LOGGER.debug("> Removing tab with Editor '{0}'.".format(editor))
        self.Script_Editor_tabWidget.removeTab(self.get_editorTab(editor))
        return True
1051724
private final void processDecoration(final DecorationModel model) {
        final Object customObj;   // Object for the <custom> node
        final Xpp3Dom customNode; // <custom> node
        final Xpp3Dom skinNode;   // <skinConfig> node

        customObj = model.getCustom();

        if (customObj instanceof Xpp3Dom) {
            // This is the <custom> node in the site.xml file

            customNode = (Xpp3Dom) customObj;

            // Acquires <skinConfig> node
            skinNode = customNode.getChild(ConfigToolConstants.SKIN_KEY);

            if (skinNode == null) {
                setSkinConfig(new Xpp3Dom(""));
            } else {
                setSkinConfig(skinNode);
            }
        }
    }
1069096
function (decorator, txt) {
        var decostr = "@" + decorator;
        var r = txt
            .replace(decostr, "")
            .trim()
            ;
        if (debug) console.log(`Cleaning deco: ${decorator} in  ${txt}
        Result: ${r}
        `);


        return r;
    }
12288
def remove_eoc_marker(self, text, next_text):
        """"""
        if self.cell_marker_start:
            return text

        if self.is_code() and text[-1] == self.comment + ' -':
            # remove end of cell marker when redundant with next explicit marker
            if not next_text or next_text[0].startswith(self.comment + ' + {'):
                text = text[:-1]
                # When we do not need the end of cell marker, number of blank lines is the max
                # between that required at the end of the cell, and that required before the next cell.
                if self.lines_to_end_of_cell_marker and (self.lines_to_next_cell is None or
                                                         self.lines_to_end_of_cell_marker > self.lines_to_next_cell):
                    self.lines_to_next_cell = self.lines_to_end_of_cell_marker
            else:
                # Insert blank lines at the end of the cell
                blank_lines = self.lines_to_end_of_cell_marker
                if blank_lines is None:
                    # two blank lines when required by pep8
                    blank_lines = pep8_lines_between_cells(text[:-1], next_text, self.ext)
                    blank_lines = 0 if blank_lines < 2 else 2
                text = text[:-1] + [''] * blank_lines + text[-1:]

        return text
1136644
def remove_star(self, component=None, **kwargs):
        
        kwargs.setdefault('kind', 'star')
        return self.remove_component(component, **kwargs)
540684
def _decorate_block(self, start, end):
        
        color = self._get_scope_highlight_color()
        draw_order = DRAW_ORDERS.get('codefolding')
        d = TextDecoration(self.editor.document(), start_line=start,
                           end_line=end+1, draw_order=draw_order)
        d.set_background(color)
        d.set_full_width(True, clear=False)
        self.editor.decorations.add(d)
        self._scope_decos.append(d)
518575
def remove_each(text, items, count=None, strip=False):
    '''
    
    '''
    for item in items:
        text = remove(text, item, count=count, strip=strip)
    return text
531800
def update(self):
        
        font = self.editor.font()
        for decoration in self._decorations:
            try:
                decoration.format.setFont(
                        font, QTextCharFormat.FontPropertiesSpecifiedOnly)
            except (TypeError, AttributeError):  # Qt < 5.3
                decoration.format.setFontFamily(font.family())
                decoration.format.setFontPointSize(font.pointSize())
        self.editor.setExtraSelections(self._decorations)
1159715
public void removeStyleNames (int row, int column, String... styles)
    {
        for (String style : styles) {
            getFlexCellFormatter().removeStyleName(row, column, style);
        }
    }
99243
def remove_widget(self, widget):
        
        button = self._buttons.pop(widget)
        self.layout().removeWidget(button)
        button.deleteLater()
777224
public void removeValidationMessage() {

        if (m_hasError) {
            m_messageText.setInnerText("");
            removeStyleName(formCss().hasError());
            removeStyleName(formCss().hasWarning());
            m_hasError = false;
        }

    }
164599
def remove(self, statement_text):
        
        Statement = self.get_model('statement')

        statements = Statement.objects.filter(text=statement_text)

        statements.delete()
1204406
def remove(self, label):
        
        if label.id in self._labels:
            self._labels[label.id] = None
        self._dirty = True
1221477
function( editor ) {
		editor.addCommand( 'removeFormat', CKEDITOR.plugins.removeformat.commands.removeformat );
		editor.ui.addButton && editor.ui.addButton( 'RemoveFormat', {
			label: editor.lang.removeformat.toolbar,
			command: 'removeFormat',
			toolbar: 'cleanup,10'
		} );
	}
834839
def append(self, decoration):
        
        if decoration not in self._decorations:
            self._decorations.append(decoration)
            self._decorations = sorted(
                self._decorations, key=lambda sel: sel.draw_order)
            self.editor.setExtraSelections(self._decorations)
            return True
        return False
826971
def deprecate(message):
    
    @decorator
    def decorate(fn, *args, **kw):
        warnings.warn(message, DeprecationWarning, 2)
        return fn(*args, **kw)
    return decorate