@@ -26,7 +26,6 @@ public class GridFSBucketOptions
2626 // fields
2727 private string _bucketName ;
2828 private int _chunkSizeBytes ;
29- private bool _disableMD5 = false ;
3029 private ReadConcern _readConcern ;
3130 private ReadPreference _readPreference ;
3231 private WriteConcern _writeConcern ;
@@ -49,7 +48,6 @@ public GridFSBucketOptions(GridFSBucketOptions other)
4948 Ensure . IsNotNull ( other , nameof ( other ) ) ;
5049 _bucketName = other . BucketName ;
5150 _chunkSizeBytes = other . ChunkSizeBytes ;
52- _disableMD5 = other . DisableMD5 ;
5351 _readConcern = other . ReadConcern ;
5452 _readPreference = other . ReadPreference ;
5553 _writeConcern = other . WriteConcern ;
@@ -64,7 +62,6 @@ public GridFSBucketOptions(ImmutableGridFSBucketOptions other)
6462 Ensure . IsNotNull ( other , nameof ( other ) ) ;
6563 _bucketName = other . BucketName ;
6664 _chunkSizeBytes = other . ChunkSizeBytes ;
67- _disableMD5 = other . DisableMD5 ;
6865 _readConcern = other . ReadConcern ;
6966 _readPreference = other . ReadPreference ;
7067 _writeConcern = other . WriteConcern ;
@@ -103,18 +100,6 @@ public int ChunkSizeBytes
103100 }
104101 }
105102
106- /// <summary>
107- /// Gets or sets whether to disable MD5 checksum computation when uploading a GridFS file.
108- /// </summary>
109- /// <value>
110- /// Whether MD5 checksum computation is disabled when uploading a GridFS file.
111- /// </value>
112- public bool DisableMD5
113- {
114- get { return _disableMD5 ; }
115- set { _disableMD5 = value ; }
116- }
117-
118103 /// <summary>
119104 /// Gets or sets the read concern.
120105 /// </summary>
@@ -177,7 +162,6 @@ public static ImmutableGridFSBucketOptions Defaults
177162 // fields
178163 private readonly string _bucketName ;
179164 private readonly int _chunkSizeBytes ;
180- private readonly bool _disableMD5 = false ;
181165 private readonly ReadConcern _readConcern ;
182166 private readonly ReadPreference _readPreference ;
183167 private readonly WriteConcern _writeConcern ;
@@ -201,7 +185,6 @@ public ImmutableGridFSBucketOptions(GridFSBucketOptions other)
201185 Ensure . IsNotNull ( other , nameof ( other ) ) ;
202186 _bucketName = other . BucketName ;
203187 _chunkSizeBytes = other . ChunkSizeBytes ;
204- _disableMD5 = other . DisableMD5 ;
205188 _readConcern = other . ReadConcern ;
206189 _readPreference = other . ReadPreference ;
207190 _writeConcern = other . WriteConcern ;
@@ -230,18 +213,6 @@ public int ChunkSizeBytes
230213 get { return _chunkSizeBytes ; }
231214 }
232215
233- /// <summary>
234- /// Gets or sets whether to disable MD5 checksum computation when uploading a GridFS file.
235- /// </summary>
236- /// <value>
237- /// Whether MD5 checksum computation is disabled when uploading a GridFS file.
238- /// </value>
239- public bool DisableMD5
240- {
241- get { return _disableMD5 ; }
242- }
243-
244-
245216 /// <summary>
246217 /// Gets the read concern.
247218 /// </summary>
0 commit comments