Skip to content

Commit 0ea2570

Browse files
committed
Marked IX509CertificateDatabase.Update(X509CrlRecord) as obsolete
There is no reason that I can think of to update a CRL record.
1 parent a5339cf commit 0ea2570

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

MimeKit/Cryptography/IX509CertificateDatabase.cs

+1
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ public interface IX509CertificateDatabase : IStore<X509Certificate>, IDisposable
183183
/// Updates the specified fields of the record in the database.
184184
/// </remarks>
185185
/// <param name="record">The CRL record.</param>
186+
[Obsolete ("This method is not used and will be removed in a future release.")]
186187
void Update (X509CrlRecord record);
187188

188189
/// <summary>

MimeKit/Cryptography/SqlCertificateDatabase.cs

+1
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,7 @@ protected override DbCommand GetUpdateCommand (DbConnection connection, X509Cert
876876
/// <returns>The database command.</returns>
877877
/// <param name="connection">The database connection.</param>
878878
/// <param name="record">The CRL record.</param>
879+
[Obsolete ("This method is not used and will be removed in a future release.")]
879880
protected override DbCommand GetUpdateCommand (DbConnection connection, X509CrlRecord record)
880881
{
881882
var statement = new StringBuilder ("UPDATE ").Append (CrlsTableName).Append (" SET ");

MimeKit/Cryptography/X509CertificateDatabase.cs

+2
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,7 @@ protected static object GetValue (X509CrlRecord record, string columnName)
887887
/// <returns>The database command.</returns>
888888
/// <param name="connection">The database connection.</param>
889889
/// <param name="record">The CRL record.</param>
890+
[Obsolete ("This method is not used and will be removed in a future release.")]
890891
protected abstract DbCommand GetUpdateCommand (DbConnection connection, X509CrlRecord record);
891892

892893
/// <summary>
@@ -1211,6 +1212,7 @@ public void Remove (X509CrlRecord record)
12111212
/// <exception cref="System.ArgumentNullException">
12121213
/// <paramref name="record"/> is <see langword="null"/>.
12131214
/// </exception>
1215+
[Obsolete ("This method is not used and will be removed in a future release.")]
12141216
public void Update (X509CrlRecord record)
12151217
{
12161218
if (record == null)

0 commit comments

Comments
 (0)