/**
  * Removes an error trap. Normally you should not invoke this directly;
  * @{class:PhutilErrorTrap} deregisters itself on destruction.
  *
  * @param PhutilErrorTrap Trap to remove.
  * @return void
  * @task trap
  */
 public static function removeErrorTrap(PhutilErrorTrap $trap)
 {
     $key = $trap->getTrapKey();
     unset(self::$traps[$key]);
 }