libmid: remove debug code