OPINION OP THE COURT.
— This is a proceeding in which the relator obtained from the Hon. Edward A. Mann, Associate Justice of the Supreme Court of the Territory of New Mexico, and judge of the Sixth Judicial District thereof, a preliminary writ of prohibition returnable on the first day of the present term of this court, to-wit: January 3rd; 1906, against the Hon. Ira A. Abbott, individually and as a judge of the Second Judicial District and of the district court of the county of Bernalillo, Territory of New Mexico.
The facts of the case are stated concisely in the brief filed by the attorneys of the respondent, and we adopt their statement as that of the court. It reads:
“The writ was based upon two affidavits of the relator in which were set forth certain orders made and entered by the respondent in his official capacity which were alleged to be in excess of the jurisdiction of the court over which the respondent presides, as well as the reasons upon which the relator relied to establish the illegality of the acts of respondent. While these affidavits together with the'exhibits attached to them are quite voluminous, it is only necessary for the purpose of this brief to sav that they charge that the relator had been removed from office by the governor of the Territory and that one Perfecto Armijo had been appointed and commissioned by the governor in his place and stead; that the relator denied the power of the governor to remove him and to appoint said Armijo, and denied that the commission of the governor and Armijo’s qualification thereunder were effectual' and claimed that Armijo could not be recognized ac sheriff of the county of Bernalillo until such time as he should by a proceeding in quo warranto establish the validity of his appointment and commission. Eelator affirmed that the respondent was proceeding to determine the question of title to the office of sheriff of Bernalillo county and to adjudge, that Armijo was, and the relator *437was not invested with a valid title thereto at a time when there was no proceeding pending before the court over which fespondent presides. It will be observed that the two affidavits narrate as facts no more than the proceedings before the governor, the action of Armijo thereunder and the orders of the district court thereon and that all else contained in the affidavits are mere statements of conclusions of law. It does appear, however, that at the time of the granting of the writ the relator was in jail and that no other proceedings were contemplated, except to continue him in jail until he complied with the order of the court.”
The preliminary writ was duly served upon the respondent on the seventh day of October, 1905.
The respondent filed a motion to quash the writ, the motion containing nine grounds, as follows:
1. It appears from the record that the orders in the writ of prohibition contained, refer only to matters or acts already performed at the time the writ was allowed.
2. It appears from the report that, at the time said writ was allowed, the said district court had disposed of the matters referred to in said writ, so that nothing remained to be done and therefore there was nothing upon which the writ of prohibition could operate.
3. It appears from’ the record that, at the time the writ was allowed, no act was threatened or contemplated in the direction of passing upon or determining the rights of said Perfecto Armijo to the office of sheriff of Bernalillo county.
4. It appears from the record that, at the time the writ was allowed, no act- was threatened or contemplated in the direction of ordering, or enforcing any order, that the said Thomas S. Hubbell should deliver to the said Perfecto Armijo possession of the county jail or of the prisoners therein confined, or of a room in the court house of Bernalillo county, or of the records and paraphernalia of the office of sheriff, everything necessar ■ to that end having already been performed.
5. The writ seeks to prohibit a court of general jurisdiction from punishing disobedience to its orders as a contempt.
*438, ...6,, It appears from the record that, at the time the saiii writ was allowed,'the said Thomas S. Hubbell was confined in the jail of Bernalillo county for contempt of thp,. authority of said district court; in having disobeyed the,order of said court sought to be prohibited, and his remedy to obtain release from such imprisonment, if unlawful, was by writ of habeas corpus, and not by writ of prohibition.
. 7. It is impossible for this court to grant said Hub-bell.any effectual relief in this case.
..,8. It appears from the records of this court in the case of Thomas S. Hubbell, appellant, against Perfecto Armijo, that said Hubbell, b3r the institution of a proceeding in the nature of a quo warranto, admitted that ho had been deprived of the possession of the office of sheriff of Bernalillo county, and that it was in said Perfecto . Armijo.
• 9. The writ was allowed ex parte, without notice to respondent or opportunity for any hearing on the application.
■ Upon this motion to quash, the hearing was had by this court on January 33rd, 1906.
For the reasons indicated in the opinion of the court in Hubbell v. Dame, Clerk, this day decided, we are of opinion that the writ of prohibition should be quashed tipon the ground that, even if made absolute, it would afford no effectual relief to the relator, Hubbell. The proceedings disclose that the writ was applied for because of two supposed emergencies, first, that the judge -of the Second ■ Judicial District was proceeding, notwithstanding the alleged fact that Hubbell was in full possession of the office of sheriff as at least the de facto incumbent thereof, to require the clerk to deliver and to continue to deliver all process for service to one Perfecto Armijo, a rival claimant to the office and second, that said, judge had ex parte and without notice or proceedings filed to that end made an order requiring the relator to yield up the possession of the office of sheriff, its books, paraphernalia and jail-to Armijo and upon relator’s failure to comply therewith had .committed him for contempt. As pointed out in the ease first above mentioned, however, the status of *439the case has entirely changed pending this proceeding. HubbeU is no longer in possession of the office; he has, we are informed by the argument at the bar, complied with the order of the court as to the possession of the office and its accessories'and has delivered it up to Armijo. He has, we are likewise informed by the argument at bar, been released from the imprisonment imposed for contempt. We can, therefore, see no utility in the perpetuation of a writ whose only objects are to secure writs for service" which, if delivered to him could no longer be served; to restrain the enforcement of an order which he has already obeyed, to avoid an imprisonment from which he has already been released.
The preliminary writ of prohibition heretofore allowed is accordingly quashed.
John E. McFie, A. J., Frank W. Parker, A. J., Wm. Tí. Pope, A. J., concur.
Mann, A. J., and Abbott, A. J. took no part in this decision.