Remove browser.

@param \BlackForest\PiwikBundle\Entity\PiwikBrowser $browser

@return boolean TRUE if this collection contained the specified element, FALSE otherwise.
8309
public function removeBrowser(\BlackForest\PiwikBundle\Entity\PiwikBrowser $browser)
    {
        return $this->browser->removeElement($browser);
    }
498995
void removeBrowserSession(BrowserSessionImpl browser)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "removeBrowserSession", browser);

        synchronized (_browsers)
        {
            _browsers.remove(browser);
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "removeBrowserSession");
    }
286411
public function removeActionType(\BlackForest\PiwikBundle\Entity\PiwikActionType $actionType)
    {
        return $this->actionType->removeElement($actionType);
    }
310521
public function destroy($removeCookie = true)
    {
        if (session_id()) {
            if ($removeCookie) {
                $path = $this->config()->get('cookie_path') ?: Director::baseURL();
                $domain = $this->config()->get('cookie_domain');
                $secure = $this->config()->get('cookie_secure');
                Cookie::force_expiry(session_name(), $path, $domain, $secure, true);
            }
            session_destroy();
        }
        // Clean up the superglobal - session_destroy does not do it.
        // http://nz1.php.net/manual/en/function.session-destroy.php
        unset($_SESSION);
        $this->data = null;
    }
268335
public function removeLogLinkVisitAction(\BlackForest\PiwikBundle\Entity\PiwikLogLinkVisitAction $logLinkVisitAction)
    {
        return $this->logLinkVisitAction->removeElement($logLinkVisitAction);
    }
554525
public function unlink($path)
    {
        $client = $this->openPath($path);
        $object = $this->bucket->object($this->file);

        try {
            $object->delete();
            return true;
        } catch (ServiceException $e) {
            return false;
        }
    }
1146646
protected function closeConnection(Browser $browser)
    {
        // Kick cURL, which tries to hold open connections...
        $curl = $browser->getClient();
        $class = new \ReflectionClass(get_class($curl));
        $property = $class->getProperty("lastCurl");
        $property->setAccessible(true);
        if (is_resource($property->getValue($curl))) {
            curl_close($property->getValue($curl));
        }
    }
42811
public function deletePage(Page $page)
    {
        $findPage = $this->findPage($page);
        if ($findPage === false) {
            return false;
        }

        $deleteStm = $this->connection->prepare("DELETE FROM Page WHERE page_id=?");
        $deleteStm->execute([$page->getID()]);
        if (!$deleteStm->rowCount() > 0) {
            return false;
        }
        if ($findPage == 'active') {
            unset($this->activePages[$page->getID()]);
        } else {
            unset($this->inactivePages[$page->getID()]);
        }

        return true;
    }
425899
public function removeSearchEngine(\BlackForest\PiwikBundle\Entity\PiwikSearchEngine $searchEngine)
    {
        return $this->searchEngine->removeElement($searchEngine);
    }
190732
protected function checkBrowserFirefox()
    {
        if (stripos($this->_agent, 'safari') === false) {
            if (preg_match("/Firefox[\/ \(]([^ ;\)]+)/i", $this->_agent, $matches)) {
                $this->setVersion($matches[1]);
                $this->setBrowser(self::BROWSER_FIREFOX);

                return true;
            } elseif (preg_match("/Firefox$/i", $this->_agent, $matches)) {
                $this->setVersion("");
                $this->setBrowser(self::BROWSER_FIREFOX);

                return true;
            }
        }

        return false;
    }
90972
public function removeReferrerType(\BlackForest\PiwikBundle\Entity\PiwikReferrerType $referrerType)
    {
        return $this->referrerType->removeElement($referrerType);
    }
775863
public function removeMenu(\Fulgurio\LightCMSBundle\Entity\PageMenu $menu)
    {
        $this->menu->removeElement($menu);
    }
1114813
public function remove($url)
    {
        $file = $this->_dir . '/' . $this->_urlToFile($url);

        if (file_exists($file))
        {
            unlink($file);

            return true;
        }

        return false;
    }
1035214
public function removeFromLibrary(File $file)
    {
        if(!$this->containsFile($file)){
            return false;
        }
        if($this->whitelistContainsFile($file)){
            $this->removeFromWhitelist($file);
        }
        $file->delete();
        return !$this->containsFile($file);
    }
203385
void removeBrowser(JmsQueueBrowserImpl browser) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "removeBrowser", browser);
        browsers.remove(browser);
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "removeBrowser");
    }
296488
public function delete(string $path) : bool
	{
		$path = $this->normalizePath($path);
		
		// Check if the path contains folders we dont want to delete
		if (str_contains($path, $this->folderPathExcludeList)) {
			return true;
		}
		
		$requestUrl = $this->siteUrl.'/sites/'.$this->siteName.'/_api/Web/GetFolderByServerRelativeUrl(\''.$this->folderPath.$path.'\')';
		
		$this->requestHeaders['IF-MATCH'] = 'etag';
			
		$this->requestHeaders['X-HTTP-Method'] = 'DELETE';
				
		$options = [
			'headers' => $this->requestHeaders,
		];
			
		$response = $this->send('POST', $requestUrl, $options);
		
		return $response->getStatusCode() === 200 ? true : false;
	}
1091060
public function remove($h)
	{
		$e = $this->getRawElement($h);
		if($e == null)
			return false;
		if($e[0] == self::TYPE_FILE)
			$this->removeFile($e[1]);
		unset($this->elements[$h]);
		return true;
	}