Remove unused card_detect(), and make card_detect_target() static inline in each...