From 1d60e4a46abdb241e1ec0ab2d1cc59743d5ad2d3 Mon Sep 17 00:00:00 2001 From: Marshall Quander <marshall@quander.me> Date: Wed, 27 Jun 2018 16:25:29 -0700 Subject: [PATCH] Kill dead code --- src/components/audio-feedback.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/components/audio-feedback.js b/src/components/audio-feedback.js index 8f4d3bc31..cdae3ef89 100644 --- a/src/components/audio-feedback.js +++ b/src/components/audio-feedback.js @@ -32,20 +32,6 @@ AFRAME.registerComponent("networked-audio-analyser", { } }); -/** - * Sets an entity's color base on audioFrequencyChange events. - * @component matcolor-audio-feedback - */ -AFRAME.registerComponent("matcolor-audio-feedback", { - tick() { - const audioAnalyser = this.el.components["networked-audio-analyser"]; - - if (!audioAnalyser || !this.mat) return; - - this.object3D.mesh.color.setScalar(1 + audioAnalyser.volume * 16); - } -}); - /** * Sets an entity's scale base on audioFrequencyChange events. * @namespace avatar -- GitLab