diff --git a/Cloudinary.Test/ApiTest.cs b/Cloudinary.Test/ApiTest.cs index b21d35a4..769f0964 100755 --- a/Cloudinary.Test/ApiTest.cs +++ b/Cloudinary.Test/ApiTest.cs @@ -845,13 +845,6 @@ public void TestDisallowUseRootPathIfNotImageUploadForRaw() m_api.UrlImgUp.UseRootPath(true).PrivateCdn(true).ResourceType("raw").BuildUrl("test"); } - //[Test] - //[ExpectedException(ExpectedException = typeof(NotSupportedException), ExpectedMessage = "URL Suffix only supported in private CDN!")] - //public void TestDisallowUrlSuffixInSharedDistribution() - //{ - // m_api.UrlImgUp.Suffix("hello").BuildUrl("test"); - //} - [Test] [ExpectedException(ExpectedException = typeof(NotSupportedException), ExpectedMessage = "URL Suffix only supported for image/upload and raw/upload!")] public void TestDisallowUrlSuffixInNonUploadTypes() diff --git a/Cloudinary/Url.cs b/Cloudinary/Url.cs index a9ed4f75..9a614756 100755 --- a/Cloudinary/Url.cs +++ b/Cloudinary/Url.cs @@ -492,9 +492,6 @@ public string BuildUrl(string source) if (String.IsNullOrEmpty(m_cloudName)) throw new ArgumentException("cloudName must be specified!"); - //if (!m_usePrivateCdn && !String.IsNullOrEmpty(m_suffix)) - //throw new NotSupportedException("URL Suffix only supported in private CDN!"); - if (source == null) source = m_source;