From 305afd763d82ef0b5c79a2b8357ef55b5cd121ab Mon Sep 17 00:00:00 2001 From: tt2468 Date: Mon, 22 Apr 2024 18:32:51 -0700 Subject: [PATCH] utils: Remove old *AutoRelease definitions Now that OBS has been out with the upstream AutoRelease definitions, and obs-websocket is also in-tree-only, these are no longer necessary. --- src/utils/Obs.h | 30 ------------------------------ 1 file changed, 30 deletions(-) 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;