corpus proceedings the court should be “guided by what appears to be for the best interests of such minor.”
Until the repeal of section 21 of Article 42 in 1945, “the principles to be applied, the status of the parties, and the thing to be done [were] the same” in equity proceedings under Art. 16, sec. 85, and in habeas corpus proceedings under Art. 42, sec. 21. Kartman v. Kartman, 163 Md. 19, 21, 161 A. 269, 270. Jurisdiction in habeas corpus proceedings under Art. 42, sec. 21, was “coextensive with that of courts of equity” under Art. 16, sec. 85, or (in divorce cases) under Art. 16, sec. 41, Acts of 1841, ch. 262 and amendments. These multiple jurisdictions involved inconveniences. De Angelis v. Kelly, 184 Md. 183, 186, 187, 40 A. 2d 332.
The purpose and effect of the repeal of section 21 of Article 42 was to abolish a duplicate jurisdiction, not to change the substantive law or to create any new or revive any old jurisdiction at variance with section 21. Prior to the enactment of section 21, “minors were, of course, subject to the application of the writ of habeas corpus, just as are all other persons, with respect to the legality of their custody and control.” De Angelis v. Kelly, supra, 184 Md. at page 185, 40 A. 2d at page 333. We may assume that even in non-criminal cases they are still subject to such application of the writ under the common law, or under section 3 of Article 42 if “any person committed, detained, confined or restrained from his lawful liberty within this State for any alleged offense or under any color or pretense whatsoever” and the similar language in section 2 of Chapter 125 of the Acts of 1809 are not limited, like the somewhat narrower language of the habeas corpus act of 31 Car. II, c. 2, to persons committed for criminal charges: “all other cases of unjust imprisonment being left to the habeas corpus at common law.” Blackstone’s Commentaries, Vol. III, pp. 136, 137.
In the case at bar, as was said in Matter of Waldron, supra, the children “cannot be considered under any improper restraint.” The case is a contest for custody between two sets of grandparents, both found to be fit