summary refs log tree commit diff
path: root/crypto/src/openpgp/PgpPublicKey.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@gmail.com>2022-06-22 01:40:55 +0700
committerPeter Dettman <peter.dettman@gmail.com>2022-06-22 01:40:55 +0700
commit892dbe845c98ff3fad3d682aaed3cd40b3161d4f (patch)
tree785ea8dc92cde60b6c06d5f56f6c3f0cda69bb2c /crypto/src/openpgp/PgpPublicKey.cs
parentCleanup old build systems (diff)
downloadBouncyCastle.NET-ed25519-892dbe845c98ff3fad3d682aaed3cd40b3161d4f.tar.xz
ObsoleteAttribute cleanup
Diffstat (limited to 'crypto/src/openpgp/PgpPublicKey.cs')
-rw-r--r--crypto/src/openpgp/PgpPublicKey.cs21
1 files changed, 0 insertions, 21 deletions
diff --git a/crypto/src/openpgp/PgpPublicKey.cs b/crypto/src/openpgp/PgpPublicKey.cs
index 0fcffc35a..f9e8c31f4 100644
--- a/crypto/src/openpgp/PgpPublicKey.cs
+++ b/crypto/src/openpgp/PgpPublicKey.cs
@@ -330,27 +330,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp
             get { return publicPk.GetTime(); }
         }
 
-        /// <summary>The number of valid days from creation time - zero means no expiry.</summary>
-        /// <remarks>WARNING: This method will return 1 for keys with version > 3 that expire in less than 1 day</remarks>
-        [Obsolete("Use 'GetValidSeconds' instead")]
-        public int ValidDays
-        {
-            get
-            {
-                if (publicPk.Version <= 3)
-                {
-                    return publicPk.ValidDays;
-                }
-
-                long expSecs = GetValidSeconds();
-                if (expSecs <= 0)
-                    return 0;
-
-                int days = (int)(expSecs / (24 * 60 * 60));
-                return System.Math.Max(1, days);
-            }
-        }
-
         /// <summary>Return the trust data associated with the public key, if present.</summary>
         /// <returns>A byte array with trust data, null otherwise.</returns>
         public byte[] GetTrustData()