Remove an unused method.

Change-Id: Id212644a19443434ca14f78555e3d159ac4266e8
Reviewed-on: https://swiftshader-review.googlesource.com/3570
Tested-by: Nicolas Capens <capn@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
diff --git a/src/OpenGL/libGL/Shader.cpp b/src/OpenGL/libGL/Shader.cpp
index ec611cd..0b10049 100644
--- a/src/OpenGL/libGL/Shader.cpp
+++ b/src/OpenGL/libGL/Shader.cpp
@@ -266,41 +266,6 @@
 	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
 bool Shader::compareVarying(const glsl::Varying &x, const glsl::Varying &y)
 {
diff --git a/src/OpenGL/libGL/Shader.h b/src/OpenGL/libGL/Shader.h
index e3bcacb..3e95845 100644
--- a/src/OpenGL/libGL/Shader.h
+++ b/src/OpenGL/libGL/Shader.h
@@ -73,7 +73,6 @@
 	TranslatorASM *createCompiler(GLenum shaderType);

 	void clear();

 

-    static GLenum parseType(const std::string &type);

     static bool compareVarying(const glsl::Varying &x, const glsl::Varying &y);

 

 	char *mSource;

diff --git a/src/OpenGL/libGLESv2/Shader.cpp b/src/OpenGL/libGLESv2/Shader.cpp
index e8f6f1b..ffba4ba 100644
--- a/src/OpenGL/libGLESv2/Shader.cpp
+++ b/src/OpenGL/libGLESv2/Shader.cpp
@@ -280,41 +280,6 @@
 	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
 bool Shader::compareVarying(const glsl::Varying &x, const glsl::Varying &y)
 {
diff --git a/src/OpenGL/libGLESv2/Shader.h b/src/OpenGL/libGLESv2/Shader.h
index d448857..963d109 100644
--- a/src/OpenGL/libGLESv2/Shader.h
+++ b/src/OpenGL/libGLESv2/Shader.h
@@ -70,7 +70,6 @@
 	TranslatorASM *createCompiler(GLenum shaderType);

 	void clear();

 

-    static GLenum parseType(const std::string &type);

     static bool compareVarying(const glsl::Varying &x, const glsl::Varying &y);

 

 	char *mSource;