From 398b2e386e840c07c9522eb922b060253953dca3 Mon Sep 17 00:00:00 2001
From: EliteMasterEric <ericmyllyoja@gmail.com>
Date: Wed, 15 Nov 2023 11:30:38 -0500
Subject: [PATCH] Remove wonky Spectrogram code

---
 .../ui/debug/charting/ChartEditorState.hx      | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/source/funkin/ui/debug/charting/ChartEditorState.hx b/source/funkin/ui/debug/charting/ChartEditorState.hx
index aa5372327..67c4e1fc4 100644
--- a/source/funkin/ui/debug/charting/ChartEditorState.hx
+++ b/source/funkin/ui/debug/charting/ChartEditorState.hx
@@ -1237,11 +1237,6 @@ class ChartEditorState extends HaxeUIState
    */
   var gridGhostEvent:Null<ChartEditorEventSprite> = null;
 
-  /**
-   * The waveform which (optionally) displays over the grid, underneath the notes and playhead.
-   */
-  var gridSpectrogram:Null<PolygonSpectogram> = null;
-
   /**
    * The sprite used to display the note preview area.
    * We move this up and down to scroll the preview.
@@ -1480,7 +1475,6 @@ class ChartEditorState extends HaxeUIState
     this.updateTheme();
 
     buildGrid();
-    // buildSpectrogram(audioInstTrack);
     buildNotePreview();
     buildSelectionBox();
 
@@ -1881,16 +1875,6 @@ class ChartEditorState extends HaxeUIState
     }
   }
 
-  function buildSpectrogram(target:FlxSound):Void
-  {
-    gridSpectrogram = new PolygonSpectogram(FlxG.sound.music, FlxColor.RED, FlxG.height / 2, Math.floor(FlxG.height / 2));
-    gridSpectrogram.x += 170;
-    gridSpectrogram.scrollFactor.set();
-    gridSpectrogram.waveAmplitude = 50;
-    gridSpectrogram.visType = UPDATED;
-    add(gridSpectrogram);
-  }
-
   /**
    * Builds the group that will hold all the notes.
    */
@@ -4857,8 +4841,6 @@ class ChartEditorState extends HaxeUIState
         gridPlayheadScrollArea.setGraphicSize(Std.int(gridPlayheadScrollArea.width), songLengthInPixels);
         gridPlayheadScrollArea.updateHitbox();
       }
-
-      buildSpectrogram(audioInstTrack);
     }
     else
     {