Skip to content

Commit

Permalink
Breaking: remove redundant constructors from OperationResult
Browse files Browse the repository at this point in the history
  • Loading branch information
laicasaane committed Sep 8, 2022
1 parent 9891602 commit bb7f29d
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions AddressablesManager/OperationResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,6 @@ public readonly struct OperationResult<T>
public readonly object Key;
public readonly T Value;

public OperationResult(AsyncOperationStatus status, T value) : this()
{
this.Succeeded = status == AsyncOperationStatus.Succeeded;
this.Value = value;
}

public OperationResult(AsyncOperationStatus status, in T value) : this()
{
this.Succeeded = status == AsyncOperationStatus.Succeeded;
this.Value = value;
}

public OperationResult(bool succeeded, object key, T value)
{
this.Succeeded = succeeded;
Expand All @@ -34,20 +22,6 @@ public OperationResult(bool succeeded, object key, in T value)
this.Value = value;
}

public OperationResult(AsyncOperationStatus status, object key, T value)
{
this.Succeeded = status == AsyncOperationStatus.Succeeded;
this.Key = key;
this.Value = value;
}

public OperationResult(AsyncOperationStatus status, object key, in T value)
{
this.Succeeded = status == AsyncOperationStatus.Succeeded;
this.Key = key;
this.Value = value;
}

public OperationResult(in AsyncOperationHandle<T> handle) : this()
{
this.Succeeded = handle.Status == AsyncOperationStatus.Succeeded;
Expand Down

0 comments on commit bb7f29d

Please sign in to comment.