From 48700161395ece1c8132ee687bf94cd62c6ec2df Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 15 Feb 2021 18:05:46 +0200 Subject: [PATCH] Remove unused constructors --- source/glsl/compatibility.cpp | 6 ------ source/glsl/compatibility.h | 1 - source/glsl/optimize.cpp | 4 ---- source/glsl/optimize.h | 1 - 4 files changed, 12 deletions(-) diff --git a/source/glsl/compatibility.cpp b/source/glsl/compatibility.cpp index 1ada7b7c..f12a46e3 100644 --- a/source/glsl/compatibility.cpp +++ b/source/glsl/compatibility.cpp @@ -85,12 +85,6 @@ LegacyConverter::LegacyConverter(): frag_out(0) { } -LegacyConverter::LegacyConverter(const Version &v): - target_api(get_gl_api()), - target_version(v), - frag_out(0) -{ } - void LegacyConverter::apply(Stage &s) { SetForScope set_stage(stage, &s); diff --git a/source/glsl/compatibility.h b/source/glsl/compatibility.h index fdbd3d07..59e21c35 100644 --- a/source/glsl/compatibility.h +++ b/source/glsl/compatibility.h @@ -49,7 +49,6 @@ private: public: LegacyConverter(); - LegacyConverter(const Version &); virtual void apply(Stage &); diff --git a/source/glsl/optimize.cpp b/source/glsl/optimize.cpp index c76cae1b..5813e2d9 100644 --- a/source/glsl/optimize.cpp +++ b/source/glsl/optimize.cpp @@ -39,10 +39,6 @@ void InlineableFunctionLocator::visit(FunctionDeclaration &func) } -FunctionInliner::FunctionInliner(): - extract_result(0) -{ } - FunctionInliner::FunctionInliner(const set &in): inlineable(in), extract_result(0) diff --git a/source/glsl/optimize.h b/source/glsl/optimize.h index cfebf0f7..01508f45 100644 --- a/source/glsl/optimize.h +++ b/source/glsl/optimize.h @@ -36,7 +36,6 @@ private: RefPtr inline_result; public: - FunctionInliner(); FunctionInliner(const std::set &); void apply(Stage &s) { visit(s.content); } -- 2.45.2