original_string: public static function deleteRiverObject($event, $type, $river) {
  		$ia = elgg_set_ignore_access(true);
  
  		$guid = InteractionsCache::getInstance()->getGuidFromRiverId($river->id);
  		if ($guid) {
  			$object = get_entity($guid);
  			if ($object) {
  				$object->delete();
  			}
  		}
  
  		elgg_set_ignore_access($ia);
  	}
code: public static function deleteRiverObject($event, $type, $river) {
  		$ia = elgg_set_ignore_access(true);
  
  		$guid = InteractionsCache::getInstance()->getGuidFromRiverId($river->id);
  		if ($guid) {
  			$object = get_entity($guid);
  			if ($object) {
  				$object->delete();
  			}
  		}
  
  		elgg_set_ignore_access($ia);
  	}
code_tokens: public static function deleteRiverObject ( $ event , $ type , $ river ) { $ ia = elgg_set_ignore_access ( true ) ; $ guid = InteractionsCache :: getInstance ( ) -> getGuidFromRiverId ( $ river -> id ) ; if ( $ guid ) { $ object = get_entity ( $ guid ) ; if ( $ object ) { $ object -> delete ( ) ; } } elgg_set_ignore_access ( $ ia ) ; }
docstring: Deletes a commentable object associated with river items whose object is not ElggObject
  
  @param string        $event "delete:after"
  @param string        $type  "river"
  @param ElggRiverItem $river River item
  @return true
docstring_tokens: Deletes a commentable object associated with river items whose object is not ElggObject