show_ref(): remove unused "flag" and "cb_data" arguments