Removes a photo or list of photos from the set.

@param $photo a ComPhotosDomainEntityPhoto object
972489
public function removePhoto($photo)
    {
        $photos = AnHelperArray::getIterator($photo);

        foreach ($photos as $photo) {
            if ($edge = $this->photos->find($photo)) {
                $edge->delete();
            }
        }
    }
993572
public function removePicture(\Dacorp\ExtraBundle\Entity\DacorpMedia $pictures)
    {
        $this->pictures->removeElement($pictures);
    }
649488
public function remove($object) : void
    {
        $hash = spl_object_hash($object);

        unset($this->objects[$hash]);
        unset($this->data[$hash]);
    }
1114589
public function remove( $key )
    {
        if ( $this->has( $key ) )
        {
            unset( $this->items[ $key ] );
        }

        $this->updateSessionFile();
    }
1267269
public function setPhoto($photo)
	{
		if (is_string($photo)) {
			$this->photo = $photo;
		} else if (is_resource($photo)) {
			$this->addMultipart("photo", $photo);
			$this->photo = "attach://photo";
		} else if ($photo instanceof InputFile) {
			$this->addMultipart("photo", $photo->getFile());
			$this->photo = "attach://photo";
		}
	}
1302513
public function add($photo)
    {
        if (is_array($photo)) {
            $this->collection[] = new Photo($photo);
        } elseif (is_object($photo) && $photo instanceof Photo) {
            $this->collection[] = $photo;
        }

        return $this;
    }
1210895
public function remove($id)
    {
        if ($this->fileSystem->has($id)) {
            $this->fileSystem->delete($id);
        }
    }
823879
protected function _actionUpdatephotos($context)
    {
        $this->execute('addphoto', $context);
        $photo_ids = (array) AnConfig::unbox($context->data->photo_id);

        foreach ($this->getItem()->photos as $photo) {
            if (!in_array($photo->id, $photo_ids)) {
                $this->getItem()->removePhoto($photo);
            }
        }

        return $this->getItem();
    }
149890
function (camera) {
        var idx = this._cameraList.indexOf(camera);
        if (idx >= 0) {
            this._cameraList.splice(idx, 1);
        }
        this._cameraList.unshift(camera);
    }
682135
public function removeAll($obj = null)
    {
        if ($obj === null) {
            $this->removeAllExcept(new \SplObjectStorage);
        }
        parent::removeAll($obj);
    }
1095735
public function delete($photoId)
    {
        $photo = $this->dataStore->getPhoto($photoId);

        if (!$photo) {
            // Photo does not exists, lets assume its deleted
            return true;
        }

        $storage = $this->storageManager->get($photo['storage_name']);

        if ($this->dataStore->deletePhoto($photoId) && $storage->deletePhoto($photo['file_path'])) {
            return true;
        }

        return false;
    }
154206
public function removeImage($location = self::IMAGE_HEADER_LEFT) {
    	if (isset($this->_headerFooterImages[$location])) {
    		unset($this->_headerFooterImages[$location]);
    	}
    	return $this;
    }
1195527
public function remove($feature)
    {
        $this->storage->remove($this->key($feature));

        $features = $this->features();
        if (in_array($feature, $features)) {
            $features = array_diff($features, array($feature));
        }
        $this->storage->set($this->featuresKey(), implode(',', $features));
    }
699259
public void removePhotos(String photosetId, String photoIds) throws FlickrException {
        Map<String, Object> parameters = new HashMap<String, Object>();
        parameters.put("method", METHOD_REMOVE_PHOTOS);

        parameters.put("photoset_id", photosetId);
        parameters.put("photo_ids", photoIds);

        Response response = transportAPI.post(transportAPI.getPath(), parameters, apiKey, sharedSecret);
        if (response.isError()) {
            throw new FlickrException(response.getErrorCode(), response.getErrorMessage());
        }
    }
1045607
public function removeAll(self $storage)
    {
        foreach ($this->data as $key => $value) {
            foreach ($storage->data as $object) {
                if ($object === $value) {
                    unset($this->data[$key]);
                    unset($this->info[$key]);
                }
            }
        }
    }
702016
public function remove($id)
    {
        $id = (string) $id;

        $this->validateRemove($id);

        if (!$this->has($id)) {
            return;
        }

        unset($this->items[$id]);
    }
991159
public function remove($element) : void
    {
        $key = array_search($element, $this->elements);
        if ($key === false) {
            return;
        }
        unset($this->elements[$key]);
    }