Skip to content

Commit

Permalink
omit unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
computablee committed Nov 27, 2023
1 parent 6541e09 commit b349701
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions DotMP/GPU/Buffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,29 +88,10 @@ public sealed class Buffer<T> : IDisposable
/// </summary>
private T[,,] data3d;

/// <summary>
/// Handler int for the number of dimensions in the array.
/// </summary>
private int dims;

/// <summary>
/// The number of dimensions in the array.
/// </summary>
internal int Dimensions
{
get
{
return dims;
}

private set
{
if (value < 1 || value > 3)
throw new ArgumentOutOfRangeException("Number of dimensions must be between 1 and 3.");

dims = value;
}
}
internal int Dimensions { get; private set; }

/// <summary>
/// Constructor for buffer object. Allocates a 1D array on the GPU and makes it available for the next GPU kernel.
Expand Down

0 comments on commit b349701

Please sign in to comment.