/**
  * Removes a content object state by its numerical ID
  *
  * This method should not be used directly, instead use {@link eZContentObjectStateGroup::removeStatesByID()}.
  *
  * @param integer $id the numerical ID of the content object state
  */
 public static function removeByID($id)
 {
     $db = eZDB::instance();
     $db->begin();
     $db->query("DELETE FROM ezcobj_state_link WHERE contentobject_state_id={$id}");
     eZPersistentObject::removeObject(eZContentObjectStateLanguage::definition(), array('contentobject_state_id' => $id));
     eZPersistentObject::removeObject(eZContentObjectState::definition(), array('id' => $id));
     $db->commit();
 }