Skip to content

Commit cba390b

Browse files
removed unneeded classes
1 parent 2806156 commit cba390b

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

Program.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,6 @@ private static async Task WaitForKey() {
1818
Console.ReadKey(true);
1919
}
2020
private readonly StructuredOsuMemoryReader osuReader = new(new ProcessTargetOptions("osu!"));
21-
private T ReadProperty<T>(object readObj, string propName, T defaultValue = default) where T : struct {
22-
if (osuReader.TryReadProperty(readObj, propName, out var readResult))
23-
return (T)readResult;
24-
25-
return defaultValue;
26-
}
27-
28-
private T ReadClassProperty<T>(object readObj, string propName, T defaultValue = default) where T : class {
29-
if (osuReader.TryReadProperty(readObj, propName, out var readResult))
30-
return (T)readResult;
31-
32-
return defaultValue;
33-
}
34-
35-
private int ReadInt(object readObj, string propName)
36-
=> ReadProperty<int>(readObj, propName, -5);
3721

3822
private static async Task osuPlug() {
3923
var client = new ButtplugClient("osu!plug");

0 commit comments

Comments
 (0)