diff --git a/src/utils/Obs.h b/src/utils/Obs.h index 9110a6cc..6fa239d7 100644 --- a/src/utils/Obs.h +++ b/src/utils/Obs.h @@ -29,36 +29,6 @@ with this program. If not, see inline void ___properties_dummy_addref(obs_properties_t *) {} using OBSPropertiesAutoDestroy = OBSRef; -#if !defined(OBS_AUTORELEASE) -inline void ___source_dummy_addref(obs_source_t *) {} -inline void ___scene_dummy_addref(obs_scene_t *) {} -inline void ___sceneitem_dummy_addref(obs_sceneitem_t *) {} -inline void ___data_dummy_addref(obs_data_t *) {} -inline void ___data_array_dummy_addref(obs_data_array_t *) {} -inline void ___output_dummy_addref(obs_output_t *) {} -inline void ___encoder_dummy_addref(obs_encoder_t *) {} -inline void ___service_dummy_addref(obs_service_t *) {} - -inline void ___weak_source_dummy_addref(obs_weak_source_t *) {} -inline void ___weak_output_dummy_addref(obs_weak_output_t *) {} -inline void ___weak_encoder_dummy_addref(obs_weak_encoder_t *) {} -inline void ___weak_service_dummy_addref(obs_weak_service_t *) {} - -using OBSSourceAutoRelease = OBSRef; -using OBSSceneAutoRelease = OBSRef; -using OBSSceneItemAutoRelease = OBSRef; -using OBSDataAutoRelease = OBSRef; -using OBSDataArrayAutoRelease = OBSRef; -using OBSOutputAutoRelease = OBSRef; -using OBSEncoderAutoRelease = OBSRef; -using OBSServiceAutoRelease = OBSRef; - -using OBSWeakSourceAutoRelease = OBSRef; -using OBSWeakOutputAutoRelease = OBSRef; -using OBSWeakEncoderAutoRelease = OBSRef; -using OBSWeakServiceAutoRelease = OBSRef; -#endif - template T *GetCalldataPointer(const calldata_t *data, const char *name) { void *ptr = nullptr;