Browse Source

Revert "libobs, docs: Add function to get source version"

This reverts commit 1a7a10048c1a22ea969545e385a456b240baad5e.
jp9000 4 years ago
parent
commit
8212cedf03
3 changed files with 0 additions and 20 deletions
  1. 0 6
      docs/sphinx/reference-sources.rst
  2. 0 11
      libobs/obs-source.c
  3. 0 3
      libobs/obs.h

+ 0 - 6
docs/sphinx/reference-sources.rst

@@ -903,12 +903,6 @@ General Source Functions
 
 ---------------------
 
-.. function:: uint32_t obs_source_get_version(const obs_source_t *source)
-
-   :return: Get version of a source
-
----------------------
-
 .. function:: signal_handler_t *obs_source_get_signal_handler(const obs_source_t *source)
 
    :return: The source's signal handler

+ 0 - 11
libobs/obs-source.c

@@ -5433,14 +5433,3 @@ void obs_source_restore_filters(obs_source_t *source, obs_data_array_t *array)
 
 	da_free(cur_filters);
 }
-
-uint32_t obs_source_get_version(const obs_source_t *source)
-{
-	if (!obs_source_valid(source, "obs_source_get_version"))
-		return 0;
-
-	if (!source->info.version)
-		return 1;
-
-	return source->info.version;
-}

+ 0 - 3
libobs/obs.h

@@ -1205,9 +1205,6 @@ EXPORT void obs_source_remove_caption_callback(obs_source_t *source,
 					       obs_source_caption_t callback,
 					       void *param);
 
-/** Get version of a source **/
-EXPORT uint32_t obs_source_get_version(const obs_source_t *source);
-
 enum obs_deinterlace_mode {
 	OBS_DEINTERLACE_MODE_DISABLE,
 	OBS_DEINTERLACE_MODE_DISCARD,