Skip to content

Commit 0257e3b

Browse files
committed
FdbSafeHandle.TrySetHandle(...) does not seem to be used anymore
1 parent 54538e7 commit 0257e3b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

FoundationDB.Client/Native/FdbSafeHandle.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ protected override bool ReleaseHandle()
8080
return true;
8181
}
8282

83+
#if NOT_USED
8384
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
8485
internal bool TrySetHandle(IntPtr handle)
8586
{
@@ -89,15 +90,16 @@ internal bool TrySetHandle(IntPtr handle)
8990
#endif
9091
return handle != IntPtr.Zero;
9192
}
93+
#endif
9294

93-
/// <summary>Retourne the value of the FDBFuture handle</summary>
95+
/// <summary>Return the value of the FDBFuture handle, for logging purpose only</summary>
9496
internal IntPtr Handle
9597
{
9698
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
9799
get { return this.handle; }
98100
}
99101

100-
/// <summary>Call the appropriate fdb_T_destroy(..)</summary>
102+
/// <summary>Call the appropriate fdb_*_destroy(..)</summary>
101103
/// <param name="handle">Handle on the FDBFuture</param>
102104
protected abstract void Destroy(IntPtr handle);
103105
}

0 commit comments

Comments
 (0)