From e2a5cf968d4dd66225f41ba20fbb54ec4c86a288 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Tue, 21 May 2024 16:42:36 -0400 Subject: [PATCH] Remove odd code from Result class --- CHANGELIST.md | 1 + MPF.Core/Data/Result.cs | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index 886873c7..b0a01990 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -22,6 +22,7 @@ - Invert using statement in dump environment - Make options internal to dump environment - Split constants files into component parts +- Remove odd code from Result class ### 3.1.9a (2024-05-21) diff --git a/MPF.Core/Data/Result.cs b/MPF.Core/Data/Result.cs index 988ae30e..aefb2d81 100644 --- a/MPF.Core/Data/Result.cs +++ b/MPF.Core/Data/Result.cs @@ -5,7 +5,7 @@ namespace MPF.Core.Data /// /// Generic success/failure result object, with optional message /// - public class Result : System.EventArgs + public class Result : EventArgs { /// /// Internal representation of success @@ -46,11 +46,6 @@ namespace MPF.Core.Data /// String to add as a message public static Result Failure(string? message) => new(false, message ?? string.Empty); - internal static Result Success(object value) - { - throw new NotImplementedException(); - } - /// /// Results can be compared to boolean values based on the success value ///