Bladeren bron

Shader: Remove unused cg_program_from_shadertype()

Mitchell Stokes 6 jaren geleden
bovenliggende
commit
69cc8fb113
2 gewijzigde bestanden met toevoegingen van 0 en 22 verwijderingen
  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;
 }
 
-/**
- * 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
  * 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_gprofile;
 
-  CGprogram cg_program_from_shadertype(ShaderType type);
-
 public:
   bool cg_compile_for(const ShaderCaps &caps, CGcontext context,
                       CGprogram &combined_program, pvector<CGparameter> &map);