]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/technique.cpp
Remove deprecated interfaces from material and lighting code
[libs/gl.git] / source / materials / technique.cpp
index e41f0c8ef4919612577fcf34baacced5719044fa..122eaf73d412f8f91f5c6fbf3690d6240cfea057 100644 (file)
@@ -3,9 +3,7 @@
 #include <msp/fs/utils.h>
 #include <msp/strings/format.h>
 #include "material.h"
-#include "program.h"
 #include "programdata.h"
-#include "tag.h"
 #include "technique.h"
 #include "texture.h"
 
@@ -94,14 +92,6 @@ bool Technique::replace_uniforms(const ProgramData &shdata)
        return replaced;
 }
 
-bool Technique::has_shaders() const
-{
-       for(const auto &kvp: passes)
-               if(kvp.second.get_shader_program())
-                       return true;
-       return false;
-}
-
 void Technique::set_debug_name(const string &name)
 {
 #ifdef DEBUG