The court has also discretion in controlling the taxation of costs, and in no case shall the state or county be charged therewith, unless the court so order, specifying in the order the officers and witnesses whose costs are to be taxed, together with the amount due each.
Code 1858, § 5572 (deriv. Acts 1827, ch. 48, § 1); Shan., § 7599; Code 1932, § 12226; T.C.A. (orig. ed.), § 40-3316.