Skip to content

Commit 127960b

Browse files
committed
Prune unused resource strings
1 parent f5de5c1 commit 127960b

File tree

3 files changed

+0
-85
lines changed

3 files changed

+0
-85
lines changed

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlUtil.cs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,16 +1788,6 @@ internal static Exception InvalidCiphertextLengthInEncryptedCEKCertificate(int a
17881788
return ADP.Argument(StringsHelper.GetString(Strings.TCE_InvalidCiphertextLengthInEncryptedCEKCertificate, actual, expected, certificateName), TdsEnums.TCE_PARAM_ENCRYPTED_CEK);
17891789
}
17901790

1791-
internal static Exception InvalidCiphertextLengthInEncryptedCEKCsp(int actual, int expected, string masterKeyPath)
1792-
{
1793-
return ADP.Argument(StringsHelper.GetString(Strings.TCE_InvalidCiphertextLengthInEncryptedCEKCsp, actual, expected, masterKeyPath), TdsEnums.TCE_PARAM_ENCRYPTED_CEK);
1794-
}
1795-
1796-
internal static Exception InvalidCiphertextLengthInEncryptedCEKCng(int actual, int expected, string masterKeyPath)
1797-
{
1798-
return ADP.Argument(StringsHelper.GetString(Strings.TCE_InvalidCiphertextLengthInEncryptedCEKCng, actual, expected, masterKeyPath), TdsEnums.TCE_PARAM_ENCRYPTED_CEK);
1799-
}
1800-
18011791
internal static Exception InvalidSignatureInEncryptedCEK(string keyType, string keyPathReference, int actual, int expected, string masterKeyPath)
18021792
{
18031793
return ADP.Argument(StringsHelper.GetString(Strings.TCE_InvalidSignatureInEncryptedCEK, actual, expected, keyType, masterKeyPath, keyPathReference), TdsEnums.TCE_PARAM_ENCRYPTED_CEK);
@@ -1808,16 +1798,6 @@ internal static Exception InvalidSignatureInEncryptedCEKCertificate(int actual,
18081798
return ADP.Argument(StringsHelper.GetString(Strings.TCE_InvalidSignatureInEncryptedCEKCertificate, actual, expected, masterKeyPath), TdsEnums.TCE_PARAM_ENCRYPTED_CEK);
18091799
}
18101800

1811-
internal static Exception InvalidSignatureInEncryptedCEKCsp(int actual, int expected, string masterKeyPath)
1812-
{
1813-
return ADP.Argument(StringsHelper.GetString(Strings.TCE_InvalidSignatureInEncryptedCEKCsp, actual, expected, masterKeyPath), TdsEnums.TCE_PARAM_ENCRYPTED_CEK);
1814-
}
1815-
1816-
internal static Exception InvalidSignatureInEncryptedCEKCng(int actual, int expected, string masterKeyPath)
1817-
{
1818-
return ADP.Argument(StringsHelper.GetString(Strings.TCE_InvalidSignatureInEncryptedCEKCng, actual, expected, masterKeyPath), TdsEnums.TCE_PARAM_ENCRYPTED_CEK);
1819-
}
1820-
18211801
internal static Exception InvalidSignature(string masterKeyPath, string keyType)
18221802
{
18231803
return ADP.Argument(StringsHelper.GetString(Strings.TCE_InvalidSignature, keyType, masterKeyPath), TdsEnums.TCE_PARAM_ENCRYPTED_CEK);
@@ -1828,11 +1808,6 @@ internal static Exception InvalidCertificateSignature(string certificatePath)
18281808
return ADP.Argument(StringsHelper.GetString(Strings.TCE_InvalidCertificateSignature, certificatePath), TdsEnums.TCE_PARAM_ENCRYPTED_CEK);
18291809
}
18301810

1831-
internal static Exception InvalidAsymmetricKeySignature(string masterKeyPath)
1832-
{
1833-
return ADP.Argument(StringsHelper.GetString(Strings.TCE_InvalidAsymmetricKeySignature, masterKeyPath), TdsEnums.TCE_PARAM_ENCRYPTED_CEK);
1834-
}
1835-
18361811
internal static Exception CertificateWithNoPrivateKey(string keyPath, bool isSystemOp)
18371812
{
18381813
if (isSystemOp)

src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs

Lines changed: 0 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Microsoft.Data.SqlClient/src/Resources/Strings.resx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4080,33 +4080,18 @@
40804080
<data name="TCE_InvalidCiphertextLengthInEncryptedCEKCertificate" xml:space="preserve">
40814081
<value>The specified encrypted column encryption key's ciphertext length: {0} does not match the ciphertext length: {1} when using column master key (certificate) in '{2}'. The encrypted column encryption key may be corrupt, or the specified certificate path may be incorrect.</value>
40824082
</data>
4083-
<data name="TCE_InvalidCiphertextLengthInEncryptedCEKCsp" xml:space="preserve">
4084-
<value>The specified encrypted column encryption key's ciphertext length: {0} does not match the ciphertext length: {1} when using column master key (asymmetric key) in '{2}'. The encrypted column encryption key may be corrupt, or the specified Microsoft Cryptographic Service provider (CSP) path may be incorrect.</value>
4085-
</data>
4086-
<data name="TCE_InvalidCiphertextLengthInEncryptedCEKCng" xml:space="preserve">
4087-
<value>The specified encrypted column encryption key's ciphertext length: {0} does not match the ciphertext length: {1} when using column master key (asymmetric key) in '{2}'. The encrypted column encryption key may be corrupt, or the specified Microsoft Cryptography API: Next Generation (CNG) provider path may be incorrect.</value>
4088-
</data>
40894083
<data name="TCE_InvalidSignatureInEncryptedCEK" xml:space="preserve">
40904084
<value>The specified encrypted column encryption key's signature length: {0} does not match the signature length: {1} when using column master key ({2}) in '{3}'. The encrypted column encryption key may be corrupt, or the specified {4} path may be incorrect.</value>
40914085
</data>
40924086
<data name="TCE_InvalidSignatureInEncryptedCEKCertificate" xml:space="preserve">
40934087
<value>The specified encrypted column encryption key's signature length: {0} does not match the signature length: {1} when using column master key (certificate) in '{2}'. The encrypted column encryption key may be corrupt, or the specified certificate path may be incorrect.</value>
40944088
</data>
4095-
<data name="TCE_InvalidSignatureInEncryptedCEKCsp" xml:space="preserve">
4096-
<value>The specified encrypted column encryption key's signature length: {0} does not match the signature length: {1} when using column master key (asymmetric key) in '{2}'. The encrypted column encryption key may be corrupt, or the specified Microsoft cryptographic service provider (CSP) path may be incorrect.</value>
4097-
</data>
4098-
<data name="TCE_InvalidSignatureInEncryptedCEKCng" xml:space="preserve">
4099-
<value>The specified encrypted column encryption key's signature length: {0} does not match the signature length: {1} when using column master key (asymmetric key) in '{2}'. The encrypted column encryption key may be corrupt, or the specified Microsoft Cryptography API: Next Generation (CNG) provider path may be incorrect.</value>
4100-
</data>
41014089
<data name="TCE_InvalidSignature" xml:space="preserve">
41024090
<value>The specified encrypted column encryption key signature does not match the signature computed with the column master key ({0}) in '{1}'. The encrypted column encryption key may be corrupt, or the specified path may be incorrect.</value>
41034091
</data>
41044092
<data name="TCE_InvalidCertificateSignature" xml:space="preserve">
41054093
<value>The specified encrypted column encryption key signature does not match the signature computed with the column master key (certificate) in '{0}'. The encrypted column encryption key may be corrupt, or the specified path may be incorrect.</value>
41064094
</data>
4107-
<data name="TCE_InvalidAsymmetricKeySignature" xml:space="preserve">
4108-
<value>The specified encrypted column encryption key signature does not match the signature computed with the column master key (asymmetric key) in '{0}'. The encrypted column encryption key may be corrupt, or the specified path may be incorrect.</value>
4109-
</data>
41104095
<data name="TCE_CertificateWithNoPrivateKey" xml:space="preserve">
41114096
<value>Certificate specified in key path '{0}' does not have a private key to encrypt a column encryption key. Verify the certificate is imported correctly.</value>
41124097
</data>

0 commit comments

Comments
 (0)