Remove Dead Codes

This commit is contained in:
copecone committed 2026-05-28 12:02:15 +09:00
1 parent ec06f99603
commit 2ea5deaba1
6 files changed
-34

No files matched your search

-3
View File
@@ -3,11 +3,9 @@ using System.Reflection;
using ADOFAIRenderer; using ADOFAIRenderer;
using ADOFAIRenderer.Component; using ADOFAIRenderer.Component;
using ADOFAIRenderer.Util; using ADOFAIRenderer.Util;
using ADOFAIRenderer.Util.FFmpeg;
using MelonLoader; using MelonLoader;
using UnityEngine; using UnityEngine;
using UnityEngine.EventSystems; using UnityEngine.EventSystems;
using UnityEngine.Rendering;
using Object = UnityEngine.Object; using Object = UnityEngine.Object;
[assembly: MelonInfo(typeof(RenderMod), "ADOFAI Renderer", "0.0.5-BETA", "ADOFAI Editor Forum")] [assembly: MelonInfo(typeof(RenderMod), "ADOFAI Renderer", "0.0.5-BETA", "ADOFAI Editor Forum")]
@@ -26,7 +24,6 @@ namespace ADOFAIRenderer
public static AssetBundle FontBundle = null!; public static AssetBundle FontBundle = null!;
// ReSharper disable once MemberCanBePrivate.Global // ReSharper disable once MemberCanBePrivate.Global
public static AssetBundle SceneBundle = null!; public static AssetBundle SceneBundle = null!;
public static bool WatchGameLoaded;
public static string[] ModScenes = {}; public static string[] ModScenes = {};
private static double _beforeTime; private static double _beforeTime;
File renamed without changes.
File renamed without changes.
-8
View File
@@ -58,14 +58,6 @@ namespace ADOFAIRenderer.Util.FFmpeg
return array; return array;
} }
/*public static byte[] RentRawBytes<T>(NativeArray<T> arr) where T : struct
{
var val = new NativeSlice<T>(arr).SliceConvert<byte>();
var array = ArrayPool<byte>.Shared.Rent(val.Length);
val.CopyTo(array);
return array;
}*/
protected static byte[] ToRawBytes<T>(NativeArray<T> arr) where T : struct protected static byte[] ToRawBytes<T>(NativeArray<T> arr) where T : struct
{ {
var val = new NativeSlice<T>(arr).SliceConvert<byte>(); var val = new NativeSlice<T>(arr).SliceConvert<byte>();
-7
View File
@@ -1,6 +1,5 @@
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using System.IO; using System.IO;
using Unity.Collections;
namespace ADOFAIRenderer.Util.FFmpeg namespace ADOFAIRenderer.Util.FFmpeg
{ {
@@ -56,12 +55,6 @@ namespace ADOFAIRenderer.Util.FFmpeg
VideoCodec = codec; VideoCodec = codec;
} }
public void SendData(NativeArray<byte> source)
{
var buffer = ToRawBytes(source);
SendDataFromBuffer(buffer);
}
public void Start(string path, float bitrate) public void Start(string path, float bitrate)
{ {
if (File.Exists(path)) if (File.Exists(path))
-16
View File
@@ -1,16 +0,0 @@
using UnityEngine;
namespace ADOFAIRenderer.Util
{
public class WaitForFrames : CustomYieldInstruction
{
private readonly int _targetFrameCount;
public WaitForFrames(int numberOfFrames)
{
_targetFrameCount = Time.frameCount + numberOfFrames;
}
public override bool keepWaiting => Time.frameCount < _targetFrameCount;
}
}