original_string: public function deleteTagEntry($tag, $catch)
      {
          if ($catch) {
              try {
                  $this->delete($tag);
              } catch (Zend_Gdata_App_HttpException $e) {
                  if ($e->getResponse()->getStatus() === 409) {
                      $entry = new Zend_Gdata_Photos_TagEntry($e->getResponse()->getBody());
                      $this->delete($entry->getLink('edit')->href);
                  } else {
                      throw $e;
                  }
              }
          } else {
              $this->delete($tag);
          }
      }
code: public function deleteTagEntry($tag, $catch)
      {
          if ($catch) {
              try {
                  $this->delete($tag);
              } catch (Zend_Gdata_App_HttpException $e) {
                  if ($e->getResponse()->getStatus() === 409) {
                      $entry = new Zend_Gdata_Photos_TagEntry($e->getResponse()->getBody());
                      $this->delete($entry->getLink('edit')->href);
                  } else {
                      throw $e;
                  }
              }
          } else {
              $this->delete($tag);
          }
      }
code_tokens: public function deleteTagEntry ( $ tag , $ catch ) { if ( $ catch ) { try { $ this -> delete ( $ tag ) ; } catch ( Zend_Gdata_App_HttpException $ e ) { if ( $ e -> getResponse ( ) -> getStatus ( ) === 409 ) { $ entry = new Zend_Gdata_Photos_TagEntry ( $ e -> getResponse ( ) -> getBody ( ) ) ; $ this -> delete ( $ entry -> getLink ( 'edit' ) -> href ) ; } else { throw $ e ; } } } else { $ this -> delete ( $ tag ) ; } }
docstring: Delete a TagEntry.
  
  @param Zend_Gdata_Photos_TagEntry $tag The tag entry to
  delete.
  @param boolean $catch Whether to catch an exception when
  modified and re-delete or throw
  @return void.
  @throws Zend_Gdata_App_Exception
  @throws Zend_Gdata_App_HttpException
docstring_tokens: Delete a TagEntry .