Removes a text decoration from the editor.

        :param decoration: Text decoration to remove
        :type decoration: pyqode.core.api.TextDecoration
331443
def remove(self, decoration):
        
        try:
            self._decorations.remove(decoration)
            self.editor.setExtraSelections(self._decorations)
            return True
        except ValueError:
            return False
1102429
func TextDecoration(value textdecoration.DecorationType) Property {
	property := Property{propertyType: "text-decoration"}
	property.values = append(property.values, string(value))

	return property
}
269208
def remove_text_layer(self):
        
        if self.text_layer is not None:
            this_node = self.text_layer.get_node()
            self.root.remove(this_node)
            self.text_layer = None

        if self.header is not None:
            self.header.remove_lp('text')
112296
function removeInnerPadding(component) {
  var _makeInnerScale = component.plot._makeInnerScale;
  component.plot._makeInnerScale = function () {
    return _makeInnerScale.call(this).innerPadding(0).outerPadding(0);
  };
}
65780
def clean(text, cls=None, **kwargs):
    
    cls = cls or Scrubber
    scrubber = cls()
    return scrubber.clean(text, **kwargs)
826971
def deprecate(message):
    
    @decorator
    def decorate(fn, *args, **kw):
        warnings.warn(message, DeprecationWarning, 2)
        return fn(*args, **kw)
    return decorate
332355
def remove_prefix(text, prefix):
	
	null, prefix, rest = text.rpartition(prefix)
	return rest
792076
private void detachDecorators(@NonNull final DialogRootView rootView) {
        for (AbstractDecorator<?, ?> decorator : decorators) {
            decorator.detach();
            decorator.removeAreaListener(rootView);
        }
    }
340700
def clear_text(self):
        
        # Implemented from template for osid.repository.AssetForm.clear_title_template
        if (self.get_text_metadata().is_read_only() or
                self.get_text_metadata().is_required()):
            raise errors.NoAccess()
        self._my_map['text'] = dict(self._text_default)
265169
def remove(self, item):
        
        self.items.pop(item)
        self._remove_dep(item)
        self.order = None
        self.changed(code_changed=True)
544271
def remove_decorators(src):
    
    src = src.strip()
    src_lines = src.splitlines()
    multi_line = False
    n_deleted = 0
    for n in range(len(src_lines)):
        line = src_lines[n - n_deleted].strip()
        if (line.startswith('@') and 'Benchmark' in line) or multi_line:
            del src_lines[n - n_deleted]
            n_deleted += 1
            if line.endswith(')'):
                multi_line = False
            else:
                multi_line = True
    setup_src = '\n'.join(src_lines)
    return setup_src
117767
def _create_decoration(self, selection_start, selection_end):
        
        deco = TextDecoration(self.editor.document(), selection_start,
                              selection_end)
        deco.set_background(QtGui.QBrush(self.background))
        deco.set_outline(self._outline)
        deco.set_foreground(QtCore.Qt.black)
        deco.draw_order = 1
        return deco
1265313
function(decoration) {
		var slice = [].slice;
		return function(base) {
			return function() {
				var argv, callback, result, that = this;
				argv = 1 <= arguments.length ? slice.call(arguments, 0) : [];
				result = void 0;
				callback = function() {
					return (result = base.apply(that, argv));
				};
				decoration.apply(this, [callback].concat(argv));
				return result;
			};
		};
	}
858874
def _clear_block_deco(self):
        """"""
        for deco in self._block_decos:
            self.editor.decorations.remove(deco)
        self._block_decos[:] = []
199769
def clear_messages(self):
        
        while len(self._messages):
            msg = self._messages.pop(0)
            usd = msg.block.userData()
            if usd and hasattr(usd, 'messages'):
                usd.messages[:] = []
            if msg.decoration:
                self.editor.decorations.remove(msg.decoration)
1273673
protected void setTextDecoration(List<TextDecoration> newTextDecoration)
    {
        if (textDecoration == null || !textDecoration.equals(newTextDecoration))
        {
            textDecoration = newTextDecoration;
            reflectTextDecoration(textDecoration);
            invalidateCache();
        }

    }
345829
function(text) {
        return macros.cleanMacros(text.replace(/\n/g, '{break}').replace(/<i>/g, '{italic}').replace(/<\/i>/g, '{end-italic}'));
    }