removing some unused code regarding printing receipts