]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove an obsolete variable
authorMikko Rasa <tdb@tdb.fi>
Tue, 16 Mar 2021 10:08:16 +0000 (12:08 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 16 Mar 2021 10:08:16 +0000 (12:08 +0200)
This hasn't been used since 0388083.

source/glsl/optimize.cpp
source/glsl/optimize.h

index 6c49878b857603152d742383ab4fd1f611e6c1ac..db779d1b01bf4dc574fd6c564b06329287430443 100644 (file)
@@ -66,8 +66,7 @@ void InlineableFunctionLocator::visit(Return &ret)
 
 InlineContentInjector::InlineContentInjector():
        source_func(0),
-       remap_names(false),
-       deps_only(false)
+       remap_names(0)
 { }
 
 const string &InlineContentInjector::apply(Stage &stage, FunctionDeclaration &target_func, Block &tgt_blk, const NodeList<Statement>::iterator &ins_pt, FunctionDeclaration &src)
@@ -112,7 +111,6 @@ void InlineContentInjector::visit(VariableReference &var)
        }
        else if(var.declaration)
        {
-               SetFlag set_deps(deps_only);
                if(!variable_map.count(var.name))
                {
                        dependencies.insert(var.declaration);
@@ -126,7 +124,6 @@ void InlineContentInjector::visit(InterfaceBlockReference &iface)
 {
        if(!remap_names && iface.declaration)
        {
-               SetFlag set_deps(deps_only);
                dependencies.insert(iface.declaration);
                referenced_names.insert(iface.name);
                iface.declaration->visit(*this);
@@ -158,7 +155,6 @@ void InlineContentInjector::visit(VariableDeclaration &var)
        }
        else if(var.type_declaration)
        {
-               SetFlag set_deps(deps_only);
                dependencies.insert(var.type_declaration);
                referenced_names.insert(var.type_declaration->name);
                var.type_declaration->visit(*this);
index 5091b008634b3d887df606844b326ccc3b353237..bffc5a036197cc7f3a46e829018a38d98dac7495 100644 (file)
@@ -44,7 +44,6 @@ private:
        std::map<std::string, VariableDeclaration *> variable_map;
        std::string remap_prefix;
        unsigned remap_names;
-       bool deps_only;
        RefPtr<Statement> r_inlined_statement;
        std::set<Node *> dependencies;
        std::set<std::string> referenced_names;