mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Remove odd code from Result class
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user