Clears the layer.
9384
public void clear()
    {
        if (LienzoCore.get().getLayerClearMode() == LayerClearMode.CLEAR)
        {
            final Context2D context = getContext();

            if (null != context)
            {
                context.clearRect(0, 0, getWidth(), getHeight());
            }
        }
        else
        {
            setPixelSize(getWidth(), getHeight());
        }
    }
227161
public function clear()
    {
        for ($i = 0; $i < $this->length(); ++$i) {
            if ($this->offsetExists($i)) {
                $this->offsetUnset($i);
            }
        }
    }
1175313
def clear(self):
        
        for i in range(self.count()):
            widget = self.widget(i)
            if widget is not None:
                widget.close()
                widget.setParent(None)
                widget.deleteLater()
1270579
@Override
    public void clear() {
        if (null != this.output) {
            for (int i = 0; i < this.output.length; i++) {
                if (null != this.output[i]) {
                    this.output[i].release();
                    this.output[i] = null;
                }
            }
        }
        this.outputIndex = 0;
        this.bufferedCount = 0;
        this.bytesWritten = 0L;
        this.isClosing = false;
    }
644682
public function clear() {

        foreach ($this->getFields() as $k) {
            if ($k != $this->getPk()) {
                $this->setProperty($k, null);
            }
        }

        $this->clearErrors();
    }
581013
def clear(self):
        """"""
        if self._cache is not None:
            with self._cache as c:
                c.clear()
                c.out_deque.clear()
1274546
public function clear()
    {
        $shmid = shm_attach($this->sysvKey, $this->shmSize, $this->perm);
        shm_remove_var($shmid, self::VAR_KEY);
    }
787988
public void clear() {
        getElement().clear();
        if (Config.getBoolConfigProperty(ConfigProperty.ENABLE_GUI_LOGGING)) {
            logUIAction(UIActions.CLEARED);
        }
    }
1338947
public void clear() {
        int h = head;
        int t = tail;
        if (h != t) { // clear all cells
            head = tail = 0;
            int i = h;
            int mask = elements.length - 1;
            do {
                elements[i] = null;
                i = (i + 1) & mask;
            } while (i != t);
        }
    }
781667
def clear(self):
        """"""
        self._deque.clear()
        self._total_length = 0
        self._has_view = False
523856
def clearkml(self):
        ''''''
        #go through all the current layers and remove them
        for layer in self.curlayers:
            self.mpstate.map.remove_object(layer)
        for layer in self.curtextlayers:
            self.mpstate.map.remove_object(layer)
        self.allayers = []
        self.curlayers = []
        self.alltextlayers = []
        self.curtextlayers = []
        self.menu_needs_refreshing = True
227979
function() {
        if (this.layers || this.map) {
            var i, layers = this.layers || this.map.layers;
            for (i=layers.length-1; i>=0; --i) {
                this.removeLayer({layer: layers[i]});
            }
        }
        if (this.map) {
            this.map.events.un({
                addlayer: this.addLayer,
                removeLayer: this.removeLayer,
                scope: this
            });
        }
        OpenLayers.Control.prototype.destroy.apply(this, arguments);
    }
654886
public function clear() {
		unset( self::$stack[ $this->type ][ $this->id ] );
		if( empty( self::$stack[ $this->type ] ) ){
			unset( self::$stack[ $this->type ] );
		}
		$this->id = null;
	}
319243
def clear(self):
        """"""

        for ax in self.flat_grid:
            for im_h in ax.findobj(AxesImage):
                im_h.remove()
576763
public function clear()
    {
        $this->dom = null;
        $this->nodes = null;
        $this->parent = null;
        $this->children = null;
    }
769182
public void clear() {
        try {
            MethodCall call=new MethodCall(CLEAR);
            disp.callRemoteMethods(null, call, call_options);
        }
        catch(Exception e) {
            throw new RuntimeException("clear() failed", e);
        }
    }
654404
public void clear() {
        mPackedAxisBits = 0;

        x = 0;
        y = 0;
        pressure = 0;
        size = 0;
        touchMajor = 0;
        touchMinor = 0;
        toolMajor = 0;
        toolMinor = 0;
        orientation = 0;
    }