Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
SuprDewd committed Jul 25, 2011
1 parent bd4b513 commit b98da2f
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 613 deletions.
5 changes: 5 additions & 0 deletions SharpBag/Collections/BinaryHeap.cs
Expand Up @@ -108,6 +108,11 @@ public void Invalidate(T item)
}
}

/// <summary>
/// Swap the values at the specified indices.
/// </summary>
/// <param name="i">The first index.</param>
/// <param name="j">The second index.</param>
protected void Swap(int i, int j)
{
T temp = this.InternalArray[i];
Expand Down
6 changes: 6 additions & 0 deletions SharpBag/Math/BigDecimal.cs
Expand Up @@ -574,6 +574,12 @@ public static BigDecimal Exp(BigDecimal value)
return BigDecimal.Round(result, value.Precision + 1);
}

/// <summary>
/// Rounds the BigDecimal.
/// </summary>
/// <param name="value">The value.</param>
/// <param name="digits">The amount of digits to keep.</param>
/// <returns>The rounded value.</returns>
public static BigDecimal Round(BigDecimal value, int digits = 0)
{
Contract.Requires(digits >= 0);
Expand Down
287 changes: 0 additions & 287 deletions SharpBag/Networking/TcpClientHandler.cs

This file was deleted.

0 comments on commit b98da2f

Please sign in to comment.