diff --git a/CHANGELOG.md b/CHANGELOG.md index 089d690..3b15c99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Removed - Drop support for .NET Standard 2.0 and Mono. NetVips now targets .NET 6 (`net6.0`) and .NET Framework 4.5.2 (`net452`) moving forward. See https://devblogs.microsoft.com/dotnet/the-future-of-net-standard/ for more information. +- Remove deprecated utilities. ## [2.4.2] - 2024-10-13 ### Fixed diff --git a/src/NetVips/NetVips.cs b/src/NetVips/NetVips.cs index c99f110..c8b9a62 100644 --- a/src/NetVips/NetVips.cs +++ b/src/NetVips/NetVips.cs @@ -39,20 +39,6 @@ public static void Shutdown() Vips.Shutdown(); } - /// - /// Enable or disable libvips leak checking. - /// - /// - /// With this enabled, libvips will check for object and area leaks on . - /// Enabling this option will make libvips run slightly more slowly. - /// - /// Bool indicating if leak checking should be turned on. - [Obsolete("NetVips.LeakSet is deprecated, please use the NetVips.Leak setter instead.")] - public static void LeakSet(bool leak) - { - Leak = leak; - } - /// /// Enable or disable libvips leak checking. /// @@ -65,20 +51,6 @@ public static bool Leak set => Vips.LeakSet(value); } - /// - /// Enable or disable libvips profile recording. - /// - /// - /// If set, vips will record profiling information, and dump it on . - /// These profiles can be analyzed with the `vipsprofile` program. - /// - /// Bool indicating if profile recording should be turned on. - [Obsolete("NetVips.ProfileSet is deprecated, please use the NetVips.Profile setter instead.")] - public static void ProfileSet(bool profile) - { - Profile = profile; - } - /// /// Enable or disable libvips profile recording. /// @@ -91,67 +63,6 @@ public static bool Profile set => Vips.ProfileSet(value); } - /// - /// Set the maximum number of operations libvips will cache. - /// - /// Maximum number of operations. - [Obsolete("NetVips.CacheSetMax is deprecated, please use the Cache.Max setter instead.")] - public static void CacheSetMax(int max) - { - Cache.Max = max; - } - - /// - /// Limit the operation cache by memory use. - /// - /// Maximum memory use. - [Obsolete("NetVips.CacheSetMaxMem is deprecated, please use the Cache.MaxMem setter instead.")] - public static void CacheSetMaxMem(ulong maxMem) - { - Cache.MaxMem = maxMem; - } - - /// - /// Limit the operation cache by number of open files. - /// - /// Maximum open files. - [Obsolete("NetVips.CacheSetMaxFiles is deprecated, please use the Cache.MaxFiles setter instead.")] - public static void CacheSetMaxFiles(int maxFiles) - { - Cache.MaxFiles = maxFiles; - } - - /// - /// Turn on libvips cache tracing. - /// - /// Bool indicating if tracing should be turned on. - [Obsolete("NetVips.CacheSetTrace is deprecated, please use the Cache.Trace setter instead.")] - public static void CacheSetTrace(bool trace) - { - Cache.Trace = trace; - } - - /// - /// Set the size of the pools of worker threads vips uses for image evaluation. - /// - /// The size of the pools of worker threads vips uses - /// for image evaluation. - [Obsolete("NetVips.ConcurrencySet is deprecated, please use the NetVips.Concurrency setter instead.")] - public static void ConcurrencySet(int concurrency) - { - Concurrency = concurrency; - } - - /// - /// Returns the number of worker threads that vips uses for image evaluation. - /// - /// The number of worker threads. - [Obsolete("NetVips.ConcurrencyGet is deprecated, please use the NetVips.Concurrency getter instead.")] - public static int ConcurrencyGet() - { - return Concurrency; - } - /// /// Gets or sets the number of worker threads libvips' should create to process each image. /// @@ -161,16 +72,6 @@ public static int Concurrency set => Vips.ConcurrencySet(value); } - /// - /// Enable or disable SIMD. - /// - /// Bool indicating if SIMD should be turned on. - [Obsolete("NetVips.VectorSet is deprecated, please use the NetVips.Vector setter instead.")] - public static void VectorSet(bool enabled) - { - Vector = enabled; - } - /// /// Enable or disable SIMD. /// @@ -204,35 +105,6 @@ public static bool BlockUntrusted set => Vips.BlockUntrustedSet(value); } - /// - /// Returns an array with: - /// - the number of active allocations. - /// - the number of bytes currently allocated via `vips_malloc()` and friends. - /// - the number of open files. - /// - /// An array with memory stats. Handy for debugging / leak testing. - [Obsolete("NetVips.MemoryStats is deprecated, please use the Stats class instead.")] - public static int[] MemoryStats() - { - return new[] - { - Stats.Allocations, - Stats.Mem, - Stats.Files - }; - } - - /// - /// Returns the largest number of bytes simultaneously allocated via vips_tracked_malloc(). - /// Handy for estimating max memory requirements for a program. - /// - /// The largest number of bytes simultaneously allocated. - [Obsolete("NetVips.MemoryHigh is deprecated, please use the Stats.MemHighwater getter instead.")] - public static ulong MemoryHigh() - { - return Stats.MemHighwater; - } - /// /// Get the major, minor or patch version number of the libvips library. ///