diff --git a/components/canvas/webgl_thread.rs b/components/canvas/webgl_thread.rs index a90c996f8bb..8e43d7c1295 100644 --- a/components/canvas/webgl_thread.rs +++ b/components/canvas/webgl_thread.rs @@ -736,8 +736,6 @@ impl WebGLImpl { ctx.gl().stencil_op(fail, zfail, zpass), WebGLCommand::StencilOpSeparate(face, fail, zfail, zpass) => ctx.gl().stencil_op_separate(face, fail, zfail, zpass), - WebGLCommand::GetActiveAttrib(program_id, index, ref chan) => - Self::active_attrib(ctx.gl(), program_id, index, chan), WebGLCommand::GetActiveUniform(program_id, index, ref chan) => Self::active_uniform(ctx.gl(), program_id, index, chan), WebGLCommand::GetRenderbufferParameter(target, pname, ref chan) => @@ -1045,25 +1043,6 @@ impl WebGLImpl { chan.send(result.into()).unwrap() } - #[allow(unsafe_code)] - fn active_attrib( - gl: &gl::Gl, - program_id: WebGLProgramId, - index: u32, - chan: &WebGLSender>, - ) { - let mut max = [0]; - unsafe { - gl.get_program_iv(program_id.get(), gl::ACTIVE_ATTRIBUTES, &mut max); - } - let result = if index >= max[0] as u32 { - Err(WebGLError::InvalidValue) - } else { - Ok(gl.get_active_attrib(program_id.get(), index)) - }; - chan.send(result).unwrap(); - } - #[allow(unsafe_code)] fn active_uniform(gl: &gl::Gl, program_id: WebGLProgramId, diff --git a/components/canvas_traits/webgl.rs b/components/canvas_traits/webgl.rs index 793f687698b..5f5c02333a8 100644 --- a/components/canvas_traits/webgl.rs +++ b/components/canvas_traits/webgl.rs @@ -207,7 +207,6 @@ pub enum WebGLCommand { FramebufferTexture2D(u32, u32, u32, Option, i32), GetExtensions(WebGLSender), GetShaderPrecisionFormat(u32, u32, WebGLSender<(i32, i32, i32)>), - GetActiveAttrib(WebGLProgramId, u32, WebGLSender>), GetActiveUniform(WebGLProgramId, u32, WebGLSender>), GetUniformLocation(WebGLProgramId, String, WebGLSender>), GetShaderInfoLog(WebGLShaderId, WebGLSender),