From b7f5f33f3efe7e4e78ea49a690ae9912e3e677ce Mon Sep 17 00:00:00 2001
From: EliteMasterEric <ericmyllyoja@gmail.com>
Date: Tue, 8 Aug 2023 15:42:15 -0400
Subject: [PATCH] Delete ancient VideoState.

---
 source/funkin/VideoState.hx | 100 ------------------------------------
 1 file changed, 100 deletions(-)
 delete mode 100644 source/funkin/VideoState.hx

diff --git a/source/funkin/VideoState.hx b/source/funkin/VideoState.hx
deleted file mode 100644
index a169ce5af..000000000
--- a/source/funkin/VideoState.hx
+++ /dev/null
@@ -1,100 +0,0 @@
-package funkin;
-
-import openfl.display.Sprite;
-import openfl.events.AsyncErrorEvent;
-import openfl.events.MouseEvent;
-import openfl.events.NetStatusEvent;
-import openfl.media.Video;
-import openfl.net.NetConnection;
-import openfl.net.NetStream;
-
-class VideoState extends MusicBeatState
-{
-  var video:Video;
-  var netStream:NetStream;
-  var overlay:Sprite;
-
-  public static var seenVideo:Bool = false;
-
-  override function create()
-  {
-    super.create();
-
-    seenVideo = true;
-
-    FlxG.save.data.seenVideo = true;
-    FlxG.save.flush();
-
-    if (FlxG.sound.music != null) FlxG.sound.music.stop();
-
-    video = new Video();
-    FlxG.addChildBelowMouse(video);
-
-    var netConnection = new NetConnection();
-    netConnection.connect(null);
-
-    netStream = new NetStream(netConnection);
-    netStream.client = {onMetaData: client_onMetaData};
-    netStream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, netStream_onAsyncError);
-    netConnection.addEventListener(NetStatusEvent.NET_STATUS, netConnection_onNetStatus);
-    // netStream.addEventListener(NetStatusEvent.NET_STATUS);
-    netStream.play(Paths.file('music/kickstarterTrailer.mp4'));
-
-    overlay = new Sprite();
-    overlay.graphics.beginFill(0, 0.5);
-    overlay.graphics.drawRect(0, 0, 1280, 720);
-    overlay.addEventListener(MouseEvent.MOUSE_DOWN, overlay_onMouseDown);
-
-    overlay.buttonMode = true;
-    // FlxG.stage.addChild(overlay);
-  }
-
-  override function update(elapsed:Float)
-  {
-    if (controls.ACCEPT) finishVid();
-
-    super.update(elapsed);
-  }
-
-  function finishVid():Void
-  {
-    netStream.dispose();
-    FlxG.removeChild(video);
-
-    TitleState.initialized = false;
-    FlxG.switchState(new TitleState());
-  }
-
-  function client_onMetaData(metaData:Dynamic)
-  {
-    video.attachNetStream(netStream);
-
-    video.width = video.videoWidth;
-    video.height = video.videoHeight;
-    // video.
-  }
-
-  function netStream_onAsyncError(event:AsyncErrorEvent):Void
-  {
-    trace("Error loading video");
-  }
-
-  function netConnection_onNetStatus(event:NetStatusEvent):Void
-  {
-    if (event.info.code == 'NetStream.Play.Complete')
-    {
-      finishVid();
-    }
-
-    trace(event.toString());
-  }
-
-  function overlay_onMouseDown(event:MouseEvent):Void
-  {
-    netStream.soundTransform.volume = 0.2;
-    netStream.soundTransform.pan = -1;
-    // netStream.play(Paths.file('music/kickstarterTrailer.mp4'));
-
-    FlxG.stage.removeChild(overlay);
-  }
-}