Skip to content

Commit 4735f01

Browse files
committed
cleanup
1 parent 252b345 commit 4735f01

File tree

4 files changed

+3
-15
lines changed

4 files changed

+3
-15
lines changed

src/dsstats.decode/DecodeService.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using pax.dsstats.parser;
55
using s2protocol.NET;
66
using System.Collections.Concurrent;
7-
using System.Reflection;
87
using System.Security.Cryptography;
98
using System.Text.RegularExpressions;
109

@@ -19,7 +18,6 @@ public partial class DecodeService(IOptions<DecodeSettings> decodeSettings,
1918
private readonly SemaphoreSlim ssRaw = new(1, 1);
2019
private readonly SemaphoreSlim fileSemaphore = new SemaphoreSlim(1, 1);
2120
private ReplayDecoder? replayDecoder;
22-
public static readonly string assemblyPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) ?? "";
2321
private int queueCount = 0;
2422
private ConcurrentBag<string> excludeReplays = [];
2523

@@ -159,7 +157,7 @@ public async Task Decode()
159157

160158
if (replayDecoder is null)
161159
{
162-
replayDecoder = new(assemblyPath);
160+
replayDecoder = new();
163161
}
164162

165163
var options = new ReplayDecoderOptions()
@@ -264,7 +262,7 @@ public async Task DecodeRaw()
264262

265263
if (replayDecoder is null)
266264
{
267-
replayDecoder = new(assemblyPath);
265+
replayDecoder = new();
268266
}
269267

270268
var options = new ReplayDecoderOptions()

src/dsstats.decode/dsstats.decode.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
<ProjectReference Include="..\dsstats.maui\dsstats.challenge\dsstats.challenge.csproj" />
77
</ItemGroup>
88

9-
<ItemGroup>
10-
<PackageReference Include="IronPython.StdLib" Version="2.7.12" />
11-
</ItemGroup>
12-
139
<PropertyGroup>
1410
<TargetFramework>net8.0</TargetFramework>
1511
<Nullable>enable</Nullable>

src/dsstats.decodecli/Program.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Diagnostics;
2-
using System.Reflection;
32
using System.Security.Cryptography;
43
using System.Text.Json;
54
using pax.dsstats.parser;
@@ -9,7 +8,6 @@ namespace dsstats.decodecli;
98

109
class Program
1110
{
12-
public static readonly string assemblyPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) ?? "";
1311
static readonly string replayFolder = "/data/ds/decode/input";
1412
static readonly string outputFolder = "/data/ds/decode/output";
1513
static readonly string errorFolder = "/data/ds/decode/error";
@@ -37,7 +35,7 @@ static async Task Main(string[] args)
3735

3836
Stopwatch sw = Stopwatch.StartNew();
3937

40-
ReplayDecoder decoder = new(assemblyPath);
38+
ReplayDecoder decoder = new();
4139

4240
ReplayDecoderOptions options = new ReplayDecoderOptions()
4341
{

src/dsstats.decodecli/dsstats.decodecli.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
<ProjectReference Include="..\dsstats.maui\pax.dsstats.parser\pax.dsstats.parser.csproj" />
66
</ItemGroup>
77

8-
<ItemGroup>
9-
<PackageReference Include="IronPython.StdLib" Version="2.7.12" />
10-
</ItemGroup>
11-
128
<PropertyGroup>
139
<OutputType>Exe</OutputType>
1410
<TargetFramework>net8.0</TargetFramework>

0 commit comments

Comments
 (0)