Commit 42c00882 by Nicolas Capens

Remove an unused method.

Change-Id: Id212644a19443434ca14f78555e3d159ac4266e8 Reviewed-on: https://swiftshader-review.googlesource.com/3570Tested-by: 's avatarNicolas Capens <capn@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 696a818c
...@@ -266,41 +266,6 @@ void Shader::releaseCompiler() ...@@ -266,41 +266,6 @@ void Shader::releaseCompiler()
compilerInitialized = false; compilerInitialized = false;
} }
GLenum Shader::parseType(const std::string &type)
{
if(type == "float")
{
return GL_FLOAT;
}
else if(type == "float2")
{
return GL_FLOAT_VEC2;
}
else if(type == "float3")
{
return GL_FLOAT_VEC3;
}
else if(type == "float4")
{
return GL_FLOAT_VEC4;
}
else if(type == "float2x2")
{
return GL_FLOAT_MAT2;
}
else if(type == "float3x3")
{
return GL_FLOAT_MAT3;
}
else if(type == "float4x4")
{
return GL_FLOAT_MAT4;
}
else UNREACHABLE(type);
return GL_NONE;
}
// true if varying x has a higher priority in packing than y // true if varying x has a higher priority in packing than y
bool Shader::compareVarying(const glsl::Varying &x, const glsl::Varying &y) bool Shader::compareVarying(const glsl::Varying &x, const glsl::Varying &y)
{ {
......
...@@ -73,7 +73,6 @@ protected: ...@@ -73,7 +73,6 @@ protected:
TranslatorASM *createCompiler(GLenum shaderType); TranslatorASM *createCompiler(GLenum shaderType);
void clear(); void clear();
static GLenum parseType(const std::string &type);
static bool compareVarying(const glsl::Varying &x, const glsl::Varying &y); static bool compareVarying(const glsl::Varying &x, const glsl::Varying &y);
char *mSource; char *mSource;
......
...@@ -280,41 +280,6 @@ void Shader::releaseCompiler() ...@@ -280,41 +280,6 @@ void Shader::releaseCompiler()
compilerInitialized = false; compilerInitialized = false;
} }
GLenum Shader::parseType(const std::string &type)
{
if(type == "float")
{
return GL_FLOAT;
}
else if(type == "float2")
{
return GL_FLOAT_VEC2;
}
else if(type == "float3")
{
return GL_FLOAT_VEC3;
}
else if(type == "float4")
{
return GL_FLOAT_VEC4;
}
else if(type == "float2x2")
{
return GL_FLOAT_MAT2;
}
else if(type == "float3x3")
{
return GL_FLOAT_MAT3;
}
else if(type == "float4x4")
{
return GL_FLOAT_MAT4;
}
else UNREACHABLE(type);
return GL_NONE;
}
// true if varying x has a higher priority in packing than y // true if varying x has a higher priority in packing than y
bool Shader::compareVarying(const glsl::Varying &x, const glsl::Varying &y) bool Shader::compareVarying(const glsl::Varying &x, const glsl::Varying &y)
{ {
......
...@@ -70,7 +70,6 @@ protected: ...@@ -70,7 +70,6 @@ protected:
TranslatorASM *createCompiler(GLenum shaderType); TranslatorASM *createCompiler(GLenum shaderType);
void clear(); void clear();
static GLenum parseType(const std::string &type);
static bool compareVarying(const glsl::Varying &x, const glsl::Varying &y); static bool compareVarying(const glsl::Varying &x, const glsl::Varying &y);
char *mSource; char *mSource;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment