From 3413cd7c73857e44eb00786e5dd144c49b59f5bb Mon Sep 17 00:00:00 2001 From: NintenHero Date: Thu, 2 Oct 2025 14:26:30 -0500 Subject: [PATCH] cleanup Remove unused using. Simplify "Remove". --- Program.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index ed8253f..408636e 100644 --- a/Program.cs +++ b/Program.cs @@ -1,5 +1,4 @@ //Written for Linkrealms. https://steamcommunity.com/app/402450/ -using System; using System.IO; namespace Linkrealms_Extractor @@ -9,7 +8,7 @@ namespace Linkrealms_Extractor static void Main(string[] args) { string path = Path.GetDirectoryName(args[0]); - path = path.Remove(path.IndexOf("\\resources")); + path = path[..path.IndexOf("\\resources")]; BinaryReader br = new(File.OpenRead(Path.GetDirectoryName(args[0]) + "//" + Path.GetFileNameWithoutExtension(args[0]) + ".idx")); System.Collections.Generic.List data = new();