summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-10-30 23:38:14 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-10-30 23:38:14 +0100
commitb04f18e29ac8efddaece673eed91cba32cad5c2c (patch)
treec16fe4cca38b9cdf7ff29341f2af6513aa02d7b3
parent7112f40a70e4bc723a52ef9aaaf9ad5d4761c6a5 (diff)
downloadrpgedit-b04f18e29ac8efddaece673eed91cba32cad5c2c.tar
rpgedit-b04f18e29ac8efddaece673eed91cba32cad5c2c.zip
view/renderer/Renderer: remove dead code
-rw-r--r--src/view/renderer/Renderer.ts33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/view/renderer/Renderer.ts b/src/view/renderer/Renderer.ts
index 6e3897d..f2f72a6 100644
--- a/src/view/renderer/Renderer.ts
+++ b/src/view/renderer/Renderer.ts
@@ -64,37 +64,4 @@ export default class Renderer {
this.gl.uniform2f(this.shaders.translateLoc, -5.0, -5.0);
}
-
- private getAttribLocation(program: WebGLProgram, name: string): number {
- const ret = this.gl.getAttribLocation(program, name);
- if (ret < 0)
- throw new Error("unable to get location of attribute '" + name + "'");
-
- return ret;
- }
-
- private getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation {
- const ret = this.gl.getUniformLocation(program, name);
- if (!ret)
- throw new Error("unable to get location of uniform '" + name + "'");
-
- return ret;
- }
-
- private compileShader(type: number, src: string): WebGLShader {
- const shader = this.gl.createShader(type);
- if (!shader)
- throw new Error('Unable to create shader');
-
- this.gl.shaderSource(shader, src);
- this.gl.compileShader(shader);
-
- if (!this.gl.getShaderParameter(shader, this.gl.COMPILE_STATUS)) {
- const err = this.gl.getShaderInfoLog(shader);
- this.gl.deleteShader(shader);
- throw new Error('Unable to compile shader: ' + err);
- }
-
- return shader;
- }
}