From: Mikko Rasa Date: Tue, 16 Mar 2021 10:08:16 +0000 (+0200) Subject: Remove an obsolete variable X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=6592dca643d9ac5b99d6a43cae30554ac1e4df62;p=libs%2Fgl.git Remove an obsolete variable This hasn't been used since 0388083. --- diff --git a/source/glsl/optimize.cpp b/source/glsl/optimize.cpp index 6c49878b..db779d1b 100644 --- a/source/glsl/optimize.cpp +++ b/source/glsl/optimize.cpp @@ -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::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); diff --git a/source/glsl/optimize.h b/source/glsl/optimize.h index 5091b008..bffc5a03 100644 --- a/source/glsl/optimize.h +++ b/source/glsl/optimize.h @@ -44,7 +44,6 @@ private: std::map variable_map; std::string remap_prefix; unsigned remap_names; - bool deps_only; RefPtr r_inlined_statement; std::set dependencies; std::set referenced_names;