Browse Source

Shader: Remove unused cg_program_from_shadertype()

Mitchell Stokes 6 years ago
parent
commit
69cc8fb113
2 changed files with 0 additions and 22 deletions
  1. 0 20
      panda/src/gobj/shader.cxx
  2. 0 2
      panda/src/gobj/shader.h

+ 0 - 20
panda/src/gobj/shader.cxx

@@ -2176,26 +2176,6 @@ cg_analyze_shader(const ShaderCaps &caps) {
   return true;
   return true;
 }
 }
 
 
-/**
- * Returns the CGprogram of the given shadertype that belongs to this shader.
- */
-CGprogram Shader::
-cg_program_from_shadertype(ShaderType type) {
-  switch (type) {
-  case ST_vertex:
-    return _cg_vprogram;
-
-  case ST_fragment:
-    return _cg_fprogram;
-
-  case ST_geometry:
-    return _cg_gprogram;
-
-  default:
-    return 0;
-  }
-}
-
 /**
 /**
  * This routine is used by the ShaderContext constructor to compile the
  * This routine is used by the ShaderContext constructor to compile the
  * shader.  The CGprogram objects are turned over to the ShaderContext, we no
  * shader.  The CGprogram objects are turned over to the ShaderContext, we no

+ 0 - 2
panda/src/gobj/shader.h

@@ -565,8 +565,6 @@ private:
   int _cg_fprofile;
   int _cg_fprofile;
   int _cg_gprofile;
   int _cg_gprofile;
 
 
-  CGprogram cg_program_from_shadertype(ShaderType type);
-
 public:
 public:
   bool cg_compile_for(const ShaderCaps &caps, CGcontext context,
   bool cg_compile_for(const ShaderCaps &caps, CGcontext context,
                       CGprogram &combined_program, pvector<CGparameter> &map);
                       CGprogram &combined_program, pvector<CGparameter> &map);