mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Remove dead code
This commit is contained in:
@@ -375,7 +375,7 @@ class Bridge_Api_Dailymotion extends Bridge_Api_Abstract implements Bridge_Api_I
|
||||
switch ($object) {
|
||||
case self::ELEMENT_TYPE_VIDEO :
|
||||
$url = sprintf("POST /video/%s", $object_id);
|
||||
$result = $this->_api->call($url, $params, $this->oauth_token);
|
||||
$this->_api->call($url, $params, $this->oauth_token);
|
||||
break;
|
||||
default:
|
||||
throw new Bridge_Exception_ElementUnknown('Unknown element ' . $type);
|
||||
@@ -432,7 +432,7 @@ class Bridge_Api_Dailymotion extends Bridge_Api_Abstract implements Bridge_Api_I
|
||||
|
||||
$url = sprintf('POST /%s/%s/%ss', $destination, $container_id, $element_type);
|
||||
|
||||
$result = $this->_api->call($url, array('ids' => implode(",", $array)), $this->oauth_token);
|
||||
$this->_api->call($url, array('ids' => implode(",", $array)), $this->oauth_token);
|
||||
|
||||
return $this->get_container_from_id(self::CONTAINER_TYPE_PLAYLIST, $container_id);
|
||||
break;
|
||||
@@ -458,10 +458,10 @@ class Bridge_Api_Dailymotion extends Bridge_Api_Abstract implements Bridge_Api_I
|
||||
$url = sprintf("DELETE /%s/%s", $object, $object_id);
|
||||
switch ($object) {
|
||||
case self::ELEMENT_TYPE_VIDEO:
|
||||
$result = $this->_api->call($url, array(), $this->oauth_token);
|
||||
$this->_api->call($url, array(), $this->oauth_token);
|
||||
break;
|
||||
case self::CONTAINER_TYPE_PLAYLIST:
|
||||
$result = $this->_api->call($url, array(), $this->oauth_token);
|
||||
$this->_api->call($url, array(), $this->oauth_token);
|
||||
break;
|
||||
default:
|
||||
throw new Bridge_Exception_ObjectUnknown('Unknown object ' . $object);
|
||||
|
@@ -837,7 +837,6 @@ class Bridge_Api_Flickr extends Bridge_Api_Abstract implements Bridge_Api_Interf
|
||||
|
||||
$xml = $response->getXml();
|
||||
$complete = isset($xml->uploader->ticket["complete"]) ? (string) $xml->uploader->ticket["complete"] : null;
|
||||
$invalid = isset($xml->uploader->ticket["invalid"]) ? (string) $xml->uploader->ticket["invalid"] : null;
|
||||
|
||||
if ($complete) {
|
||||
if ((int) $complete == 0)
|
||||
|
@@ -564,7 +564,6 @@ class Bridge_Api_Youtube extends Bridge_Api_Abstract implements Bridge_Api_Inter
|
||||
}
|
||||
|
||||
if ($error = $this->parse_xml_error($response->getBody())) {
|
||||
$type = $error['type'];
|
||||
$code = $error['code'];
|
||||
|
||||
if ($code == "too_many_recent_calls") {
|
||||
|
Reference in New Issue
Block a user