From 16f45e724464654672e5b8340db93ebfd4da89e1 Mon Sep 17 00:00:00 2001
From: jp9000 <obs.jim@gmail.com>
Date: Wed, 25 Jun 2014 18:33:03 -0700
Subject: [PATCH] Remove unused texture file loading functions

Getting cubemaps and volume textures from file is very unlikely to ever
happen for our purposes.
---
 libobs/graphics/graphics.c | 16 ----------------
 libobs/graphics/graphics.h |  4 ----
 2 files changed, 20 deletions(-)

diff --git a/libobs/graphics/graphics.c b/libobs/graphics/graphics.c
index 9453982e7..a9b0d58c2 100644
--- a/libobs/graphics/graphics.c
+++ b/libobs/graphics/graphics.c
@@ -693,22 +693,6 @@ texture_t gs_create_texture_from_file(const char *file, uint32_t flags)
 	return NULL;
 }
 
-texture_t gs_create_cubetexture_from_file(const char *file, uint32_t flags)
-{
-	/* TODO */
-	UNUSED_PARAMETER(file);
-	UNUSED_PARAMETER(flags);
-	return NULL;
-}
-
-texture_t gs_create_volumetexture_from_file(const char *file, uint32_t flags)
-{
-	/* TODO */
-	UNUSED_PARAMETER(file);
-	UNUSED_PARAMETER(flags);
-	return NULL;
-}
-
 static inline void assign_sprite_rect(float *start, float *end, float size,
 		bool flip)
 {
diff --git a/libobs/graphics/graphics.h b/libobs/graphics/graphics.h
index 3b5399d37..7bcc2951a 100644
--- a/libobs/graphics/graphics.h
+++ b/libobs/graphics/graphics.h
@@ -481,10 +481,6 @@ EXPORT shader_t gs_create_pixelshader_from_file(const char *file,
 
 EXPORT texture_t gs_create_texture_from_file(const char *file,
 		uint32_t flags);
-EXPORT texture_t gs_create_cubetexture_from_file(const char *flie,
-		uint32_t flags);
-EXPORT texture_t gs_create_volumetexture_from_file(const char *flie,
-		uint32_t flags);
 
 #define GS_FLIP_U (1<<0)
 #define GS_FLIP_V (1<<1)
-- 
GitLab