Remove unused matchesType method