From f7f0ac88b224f00067008b68425367b5ff53aa14 Mon Sep 17 00:00:00 2001 From: Tom Deseyn Date: Wed, 24 Jul 2024 17:35:37 +0200 Subject: [PATCH] Remove Feature class. --- src/Tmds.DBus.Protocol/Feature.cs | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 src/Tmds.DBus.Protocol/Feature.cs diff --git a/src/Tmds.DBus.Protocol/Feature.cs b/src/Tmds.DBus.Protocol/Feature.cs deleted file mode 100644 index 00597dc6..00000000 --- a/src/Tmds.DBus.Protocol/Feature.cs +++ /dev/null @@ -1,14 +0,0 @@ -namespace Tmds.DBus.Protocol; - -static class Feature -{ - public static bool IsDynamicCodeEnabled => -#if NETSTANDARD2_0 - true -#else - System.Runtime.CompilerServices.RuntimeFeature.IsDynamicCodeSupported -#endif - && EnableDynamicCode; - - private static readonly bool EnableDynamicCode = Environment.GetEnvironmentVariable("TMDS_DBUS_PROTOCOL_DYNAMIC_CODE") != "0"; -} \ No newline at end of file