Remove odd code from Result class

This commit is contained in:
Matt Nadareski
2024-05-21 16:42:36 -04:00
parent 60f43de605
commit e2a5cf968d
2 changed files with 2 additions and 6 deletions

View File

@@ -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)

View File

@@ -5,7 +5,7 @@ namespace MPF.Core.Data
/// <summary>
/// Generic success/failure result object, with optional message
/// </summary>
public class Result : System.EventArgs
public class Result : EventArgs
{
/// <summary>
/// Internal representation of success
@@ -46,11 +46,6 @@ namespace MPF.Core.Data
/// <param name="message">String to add as a message</param>
public static Result Failure(string? message) => new(false, message ?? string.Empty);
internal static Result Success(object value)
{
throw new NotImplementedException();
}
/// <summary>
/// Results can be compared to boolean values based on the success value
/// </summary>