The open source OpenXR runtime

xrt: remove function pointer check

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2271>

-18
-18
src/xrt/include/xrt/xrt_device.h
··· 628 628 enum xrt_input_name body_tracking_type, 629 629 struct xrt_body_skeleton *out_value) 630 630 { 631 - if (xdev->get_body_skeleton == NULL) { 632 - return XRT_ERROR_NOT_IMPLEMENTED; 633 - } 634 631 return xdev->get_body_skeleton(xdev, body_tracking_type, out_value); 635 632 } 636 633 ··· 647 644 int64_t desired_timestamp_ns, 648 645 struct xrt_body_joint_set *out_value) 649 646 { 650 - if (xdev->get_body_joints == NULL) { 651 - return XRT_ERROR_NOT_IMPLEMENTED; 652 - } 653 647 return xdev->get_body_joints(xdev, body_tracking_type, desired_timestamp_ns, out_value); 654 648 } 655 649 ··· 712 706 uint32_t view_index, 713 707 struct xrt_visibility_mask **out_mask) 714 708 { 715 - if (xdev->get_visibility_mask == NULL) { 716 - return XRT_ERROR_NOT_IMPLEMENTED; 717 - } 718 709 return xdev->get_visibility_mask(xdev, type, view_index, out_mask); 719 710 } 720 711 ··· 757 748 static inline xrt_result_t 758 749 xrt_device_get_battery_status(struct xrt_device *xdev, bool *out_present, bool *out_charging, float *out_charge) 759 750 { 760 - if (xdev->get_battery_status == NULL) { 761 - return XRT_ERROR_NOT_IMPLEMENTED; 762 - } 763 751 return xdev->get_battery_status(xdev, out_present, out_charging, out_charge); 764 752 } 765 753 ··· 773 761 static inline xrt_result_t 774 762 xrt_device_begin_feature(struct xrt_device *xdev, enum xrt_device_feature_type type) 775 763 { 776 - if (xdev->begin_feature == NULL) { 777 - return XRT_ERROR_NOT_IMPLEMENTED; 778 - } 779 764 return xdev->begin_feature(xdev, type); 780 765 } 781 766 ··· 789 774 static inline xrt_result_t 790 775 xrt_device_end_feature(struct xrt_device *xdev, enum xrt_device_feature_type type) 791 776 { 792 - if (xdev->end_feature == NULL) { 793 - return XRT_ERROR_NOT_IMPLEMENTED; 794 - } 795 777 return xdev->end_feature(xdev, type); 796 778 } 797 779