46-11-405. Discharge of codefendant. (1) When two or more persons are included in the same charge, the court may, at any time before the defendants have gone into their defense, on the application of the prosecutor, direct any defendant to be discharged so that the defendant may be a witness for the prosecution.
(2) When two or more persons are included in the same indictment or information and the court is of the opinion that in regard to a particular defendant there is not sufficient evidence to require the defendant to put on a defense, the court must order that defendant to be discharged before the evidence is closed so that the discharged defendant may be a witness for the codefendant.