From 26d6099bae7bca7f39c048deb0d3ea38c7a1be8c Mon Sep 17 00:00:00 2001 From: Sagilio Date: Sun, 7 Nov 2021 04:31:18 +0800 Subject: [PATCH] fix: Change Casbin.Exstention to Casbin BREAKING CAHNGE: Change Casbin.Exstention to Casbin Signed-off-by: Sagilio --- Casbin.Benchmark/EnforcerBenchmark.cs | 1 - Casbin.Benchmark/EnforcerWithCacheBenchmark.cs | 1 - Casbin.Benchmark/ModelBenchmark.cs | 1 - NetCasbin.UnitTest/ModelTests/CachedEnforcerTest.cs | 3 +-- NetCasbin.UnitTest/ModelTests/EnforcerTest.cs | 3 --- NetCasbin.UnitTest/ModelTests/ManagementApiTest.cs | 1 - NetCasbin.UnitTest/ModelTests/ModelTest.cs | 1 - NetCasbin.UnitTest/ModelTests/RbacApiTest.cs | 1 - NetCasbin.UnitTest/ModelTests/RbacApiWithDomainsTest.cs | 1 - NetCasbin.UnitTest/PersistTests/WatcherTest.cs | 1 - NetCasbin.UnitTest/RbacTests/GroupRoleManagerTest.cs | 3 +-- NetCasbin.UnitTest/RbacTests/RoleManagerTest.cs | 1 - NetCasbin.UnitTest/SyncedModelTests/SyncedEnforcerTest.cs | 2 -- .../SyncedModelTests/SyncedManagementApiTest.cs | 1 - NetCasbin.UnitTest/SyncedModelTests/SyncedRbacApiTest.cs | 1 - NetCasbin.UnitTest/Util/TestUtil.cs | 1 - NetCasbin.UnitTest/UtilTests/StringUtilTest.cs | 6 +----- NetCasbin.UnitTest/UtilTests/UtilityTest.cs | 3 --- NetCasbin/Abstractions/Effect/IChainEffector.cs | 4 +--- NetCasbin/Abstractions/Effect/IEffectChain.cs | 8 +------- NetCasbin/Effect/DefaultEffector.cs | 1 - NetCasbin/Enforcer.cs | 1 - NetCasbin/Extensions/Enforcer/EnforcerExtension.cs | 3 +-- .../Extensions/Enforcer/InternalEnforcerExtension.cs | 2 +- .../Extensions/Enforcer/ManagementEnforcerExtension.cs | 3 +-- NetCasbin/Extensions/Enforcer/RbacEnforcerExtension.cs | 5 ++--- NetCasbin/Extensions/Enforcer/SyncedEnforcerExtension.cs | 2 +- NetCasbin/Extensions/EnumerableExtension.cs | 2 +- NetCasbin/Extensions/IPAddressExtension.cs | 2 +- NetCasbin/Extensions/LoggerExtension.cs | 6 +++--- NetCasbin/Extensions/Model/ModelExtension.cs | 5 ++--- NetCasbin/Extensions/Model/PolicyManagerExtension.cs | 2 +- NetCasbin/Extensions/Model/ReadOnlyAssertionExtension.cs | 2 +- NetCasbin/Extensions/Model/SyncedModelExtension.cs | 2 +- NetCasbin/Extensions/PolicyEffectExtension.cs | 2 +- NetCasbin/Extensions/Rbac/RoleMangerExtension.cs | 2 +- NetCasbin/Model/Assertion.cs | 1 - NetCasbin/Rbac/GroupRoleManager.cs | 4 +--- NetCasbin/SyncedEnforcer.cs | 4 +--- NetCasbin/Util/BuiltInFunctions.cs | 1 - 40 files changed, 25 insertions(+), 71 deletions(-) diff --git a/Casbin.Benchmark/EnforcerBenchmark.cs b/Casbin.Benchmark/EnforcerBenchmark.cs index f5205c0f..bdadecc2 100644 --- a/Casbin.Benchmark/EnforcerBenchmark.cs +++ b/Casbin.Benchmark/EnforcerBenchmark.cs @@ -4,7 +4,6 @@ using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Engines; using BenchmarkDotNet.Jobs; -using Casbin.Extensions; using static Casbin.Benchmark.TestHelper; namespace Casbin.Benchmark diff --git a/Casbin.Benchmark/EnforcerWithCacheBenchmark.cs b/Casbin.Benchmark/EnforcerWithCacheBenchmark.cs index 3c8841b6..554da20d 100644 --- a/Casbin.Benchmark/EnforcerWithCacheBenchmark.cs +++ b/Casbin.Benchmark/EnforcerWithCacheBenchmark.cs @@ -4,7 +4,6 @@ using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Engines; using BenchmarkDotNet.Jobs; -using Casbin.Extensions; using static Casbin.Benchmark.TestHelper; namespace Casbin.Benchmark diff --git a/Casbin.Benchmark/ModelBenchmark.cs b/Casbin.Benchmark/ModelBenchmark.cs index 92ca54bd..275b05ac 100644 --- a/Casbin.Benchmark/ModelBenchmark.cs +++ b/Casbin.Benchmark/ModelBenchmark.cs @@ -2,7 +2,6 @@ using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Engines; using BenchmarkDotNet.Jobs; -using Casbin.Extensions; namespace Casbin.Benchmark { diff --git a/NetCasbin.UnitTest/ModelTests/CachedEnforcerTest.cs b/NetCasbin.UnitTest/ModelTests/CachedEnforcerTest.cs index 331a2dee..613d4b5f 100644 --- a/NetCasbin.UnitTest/ModelTests/CachedEnforcerTest.cs +++ b/NetCasbin.UnitTest/ModelTests/CachedEnforcerTest.cs @@ -1,5 +1,4 @@ -using Casbin.Extensions; -using Casbin.UnitTests.Fixtures; +using Casbin.UnitTests.Fixtures; using Casbin.UnitTests.Mock; using Xunit; using Xunit.Abstractions; diff --git a/NetCasbin.UnitTest/ModelTests/EnforcerTest.cs b/NetCasbin.UnitTest/ModelTests/EnforcerTest.cs index 41bb102c..1fc8bc21 100644 --- a/NetCasbin.UnitTest/ModelTests/EnforcerTest.cs +++ b/NetCasbin.UnitTest/ModelTests/EnforcerTest.cs @@ -1,11 +1,8 @@ using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using Casbin.Adapter.File; -using Casbin.Extensions; using Casbin.Model; -using Casbin.Persist; using Casbin.Rbac; using Casbin.UnitTests.Fixtures; using Casbin.UnitTests.Mock; diff --git a/NetCasbin.UnitTest/ModelTests/ManagementApiTest.cs b/NetCasbin.UnitTest/ModelTests/ManagementApiTest.cs index 1bd0d2db..173e5bc3 100644 --- a/NetCasbin.UnitTest/ModelTests/ManagementApiTest.cs +++ b/NetCasbin.UnitTest/ModelTests/ManagementApiTest.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using System.Threading.Tasks; -using Casbin.Extensions; using Casbin.UnitTests.Fixtures; using Xunit; using static Casbin.UnitTests.Util.TestUtil; diff --git a/NetCasbin.UnitTest/ModelTests/ModelTest.cs b/NetCasbin.UnitTest/ModelTests/ModelTest.cs index 29c83d18..affd95ca 100644 --- a/NetCasbin.UnitTest/ModelTests/ModelTest.cs +++ b/NetCasbin.UnitTest/ModelTests/ModelTest.cs @@ -1,5 +1,4 @@ using System.Threading.Tasks; -using Casbin.Extensions; using Casbin.UnitTests.Fixtures; using Casbin.UnitTests.Mock; using Xunit; diff --git a/NetCasbin.UnitTest/ModelTests/RbacApiTest.cs b/NetCasbin.UnitTest/ModelTests/RbacApiTest.cs index 37f2e487..d2a43421 100644 --- a/NetCasbin.UnitTest/ModelTests/RbacApiTest.cs +++ b/NetCasbin.UnitTest/ModelTests/RbacApiTest.cs @@ -1,5 +1,4 @@ using System.Threading.Tasks; -using Casbin.Extensions; using Casbin.UnitTests.Fixtures; using Xunit; using static Casbin.UnitTests.Util.TestUtil; diff --git a/NetCasbin.UnitTest/ModelTests/RbacApiWithDomainsTest.cs b/NetCasbin.UnitTest/ModelTests/RbacApiWithDomainsTest.cs index b6f940b2..27d24ad0 100644 --- a/NetCasbin.UnitTest/ModelTests/RbacApiWithDomainsTest.cs +++ b/NetCasbin.UnitTest/ModelTests/RbacApiWithDomainsTest.cs @@ -1,5 +1,4 @@ using System.Threading.Tasks; -using Casbin.Extensions; using Casbin.UnitTests.Fixtures; using Xunit; using static Casbin.UnitTests.Util.TestUtil; diff --git a/NetCasbin.UnitTest/PersistTests/WatcherTest.cs b/NetCasbin.UnitTest/PersistTests/WatcherTest.cs index 385ef70e..ad7e7129 100644 --- a/NetCasbin.UnitTest/PersistTests/WatcherTest.cs +++ b/NetCasbin.UnitTest/PersistTests/WatcherTest.cs @@ -1,7 +1,6 @@ using System; using System.Threading.Tasks; using Casbin.Adapter.File; -using Casbin.Extensions; using Casbin.Persist; using Casbin.UnitTests.Fixtures; using Xunit; diff --git a/NetCasbin.UnitTest/RbacTests/GroupRoleManagerTest.cs b/NetCasbin.UnitTest/RbacTests/GroupRoleManagerTest.cs index 5417f8eb..68ff4cbf 100644 --- a/NetCasbin.UnitTest/RbacTests/GroupRoleManagerTest.cs +++ b/NetCasbin.UnitTest/RbacTests/GroupRoleManagerTest.cs @@ -1,5 +1,4 @@ -using Casbin.Extensions; -using Casbin.Rbac; +using Casbin.Rbac; using Xunit; using static Casbin.UnitTests.Util.TestUtil; diff --git a/NetCasbin.UnitTest/RbacTests/RoleManagerTest.cs b/NetCasbin.UnitTest/RbacTests/RoleManagerTest.cs index 03d715dd..f53c87e1 100644 --- a/NetCasbin.UnitTest/RbacTests/RoleManagerTest.cs +++ b/NetCasbin.UnitTest/RbacTests/RoleManagerTest.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using Casbin.Extensions; using Casbin.Rbac; using Casbin.Util; using Xunit; diff --git a/NetCasbin.UnitTest/SyncedModelTests/SyncedEnforcerTest.cs b/NetCasbin.UnitTest/SyncedModelTests/SyncedEnforcerTest.cs index 4c319baa..bb59b129 100644 --- a/NetCasbin.UnitTest/SyncedModelTests/SyncedEnforcerTest.cs +++ b/NetCasbin.UnitTest/SyncedModelTests/SyncedEnforcerTest.cs @@ -2,9 +2,7 @@ using System.IO; using System.Threading.Tasks; using Casbin.Adapter.File; -using Casbin.Extensions; using Casbin.Model; -using Casbin.Persist; using Casbin.UnitTests.Fixtures; using Casbin.UnitTests.Mock; using Xunit; diff --git a/NetCasbin.UnitTest/SyncedModelTests/SyncedManagementApiTest.cs b/NetCasbin.UnitTest/SyncedModelTests/SyncedManagementApiTest.cs index cdaeecf9..5fdb741e 100644 --- a/NetCasbin.UnitTest/SyncedModelTests/SyncedManagementApiTest.cs +++ b/NetCasbin.UnitTest/SyncedModelTests/SyncedManagementApiTest.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using System.Threading.Tasks; -using Casbin.Extensions; using Casbin.UnitTests.Fixtures; using Xunit; using static Casbin.UnitTests.Util.TestUtil; diff --git a/NetCasbin.UnitTest/SyncedModelTests/SyncedRbacApiTest.cs b/NetCasbin.UnitTest/SyncedModelTests/SyncedRbacApiTest.cs index ae7e79f4..c586da4a 100644 --- a/NetCasbin.UnitTest/SyncedModelTests/SyncedRbacApiTest.cs +++ b/NetCasbin.UnitTest/SyncedModelTests/SyncedRbacApiTest.cs @@ -1,5 +1,4 @@ using System.Threading.Tasks; -using Casbin.Extensions; using Casbin.UnitTests.Fixtures; using Xunit; using static Casbin.UnitTests.Util.TestUtil; diff --git a/NetCasbin.UnitTest/Util/TestUtil.cs b/NetCasbin.UnitTest/Util/TestUtil.cs index 34697136..83780ae5 100644 --- a/NetCasbin.UnitTest/Util/TestUtil.cs +++ b/NetCasbin.UnitTest/Util/TestUtil.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using Casbin.Extensions; using Casbin.Rbac; using Casbin.Util; using Xunit; diff --git a/NetCasbin.UnitTest/UtilTests/StringUtilTest.cs b/NetCasbin.UnitTest/UtilTests/StringUtilTest.cs index 67ed5faa..a08c2dc6 100644 --- a/NetCasbin.UnitTest/UtilTests/StringUtilTest.cs +++ b/NetCasbin.UnitTest/UtilTests/StringUtilTest.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Collections.Generic; using Casbin.Util; using Xunit; diff --git a/NetCasbin.UnitTest/UtilTests/UtilityTest.cs b/NetCasbin.UnitTest/UtilTests/UtilityTest.cs index 8f264478..0ebff16a 100644 --- a/NetCasbin.UnitTest/UtilTests/UtilityTest.cs +++ b/NetCasbin.UnitTest/UtilTests/UtilityTest.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using Casbin.Util; using DynamicExpresso; using Xunit; diff --git a/NetCasbin/Abstractions/Effect/IChainEffector.cs b/NetCasbin/Abstractions/Effect/IChainEffector.cs index 31c72c24..ded4d59a 100644 --- a/NetCasbin/Abstractions/Effect/IChainEffector.cs +++ b/NetCasbin/Abstractions/Effect/IChainEffector.cs @@ -1,6 +1,4 @@ -using Casbin.Effect; - -namespace Casbin.Effect +namespace Casbin.Effect { public interface IChainEffector { diff --git a/NetCasbin/Abstractions/Effect/IEffectChain.cs b/NetCasbin/Abstractions/Effect/IEffectChain.cs index f4988fad..ab28ae7d 100644 --- a/NetCasbin/Abstractions/Effect/IEffectChain.cs +++ b/NetCasbin/Abstractions/Effect/IEffectChain.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Casbin.Effect +namespace Casbin.Effect { public interface IEffectChain { diff --git a/NetCasbin/Effect/DefaultEffector.cs b/NetCasbin/Effect/DefaultEffector.cs index e44f5399..9933d3c2 100644 --- a/NetCasbin/Effect/DefaultEffector.cs +++ b/NetCasbin/Effect/DefaultEffector.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using Casbin.Evaluation; -using Casbin.Extensions; namespace Casbin.Effect { diff --git a/NetCasbin/Enforcer.cs b/NetCasbin/Enforcer.cs index 49740926..a47e6639 100644 --- a/NetCasbin/Enforcer.cs +++ b/NetCasbin/Enforcer.cs @@ -5,7 +5,6 @@ using Casbin.Adapter.File; using Casbin.Caching; using Casbin.Effect; -using Casbin.Extensions; using Casbin.Model; using Casbin.Persist; using Casbin.Rbac; diff --git a/NetCasbin/Extensions/Enforcer/EnforcerExtension.cs b/NetCasbin/Extensions/Enforcer/EnforcerExtension.cs index c00aecdb..4ae1171d 100644 --- a/NetCasbin/Extensions/Enforcer/EnforcerExtension.cs +++ b/NetCasbin/Extensions/Enforcer/EnforcerExtension.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Runtime.CompilerServices; using System.Threading.Tasks; using Casbin.Caching; using Casbin.Effect; @@ -12,7 +11,7 @@ using Microsoft.Extensions.Logging; #endif -namespace Casbin.Extensions +namespace Casbin { public static class EnforcerExtension { diff --git a/NetCasbin/Extensions/Enforcer/InternalEnforcerExtension.cs b/NetCasbin/Extensions/Enforcer/InternalEnforcerExtension.cs index 0be23e1c..18bb9df9 100644 --- a/NetCasbin/Extensions/Enforcer/InternalEnforcerExtension.cs +++ b/NetCasbin/Extensions/Enforcer/InternalEnforcerExtension.cs @@ -5,7 +5,7 @@ using Microsoft.Extensions.Logging; #endif -namespace Casbin.Extensions +namespace Casbin { internal static class InternalEnforcerExtension { diff --git a/NetCasbin/Extensions/Enforcer/ManagementEnforcerExtension.cs b/NetCasbin/Extensions/Enforcer/ManagementEnforcerExtension.cs index 85aa5cfe..f847c54e 100644 --- a/NetCasbin/Extensions/Enforcer/ManagementEnforcerExtension.cs +++ b/NetCasbin/Extensions/Enforcer/ManagementEnforcerExtension.cs @@ -1,9 +1,8 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Threading.Tasks; -namespace Casbin.Extensions +namespace Casbin { public static class ManagementEnforcerExtension { diff --git a/NetCasbin/Extensions/Enforcer/RbacEnforcerExtension.cs b/NetCasbin/Extensions/Enforcer/RbacEnforcerExtension.cs index bab1cc19..af034649 100644 --- a/NetCasbin/Extensions/Enforcer/RbacEnforcerExtension.cs +++ b/NetCasbin/Extensions/Enforcer/RbacEnforcerExtension.cs @@ -1,9 +1,8 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -namespace Casbin.Extensions +namespace Casbin { public static class RbacEnforcerExtension { diff --git a/NetCasbin/Extensions/Enforcer/SyncedEnforcerExtension.cs b/NetCasbin/Extensions/Enforcer/SyncedEnforcerExtension.cs index 8e5b406f..ad63581b 100644 --- a/NetCasbin/Extensions/Enforcer/SyncedEnforcerExtension.cs +++ b/NetCasbin/Extensions/Enforcer/SyncedEnforcerExtension.cs @@ -1,6 +1,6 @@ using Casbin.Model; -namespace Casbin.Extensions +namespace Casbin { public static class SyncedEnforcerExtension { diff --git a/NetCasbin/Extensions/EnumerableExtension.cs b/NetCasbin/Extensions/EnumerableExtension.cs index b5a126b8..92f3e84f 100644 --- a/NetCasbin/Extensions/EnumerableExtension.cs +++ b/NetCasbin/Extensions/EnumerableExtension.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Casbin.Extensions +namespace Casbin { internal static class EnumerableExtension { diff --git a/NetCasbin/Extensions/IPAddressExtension.cs b/NetCasbin/Extensions/IPAddressExtension.cs index 76b453bc..1a0eb838 100644 --- a/NetCasbin/Extensions/IPAddressExtension.cs +++ b/NetCasbin/Extensions/IPAddressExtension.cs @@ -2,7 +2,7 @@ using System.Net; using System.Net.Sockets; -namespace Casbin.Extensions +namespace Casbin { // ReSharper disable once InconsistentNaming public static class IPAddressExtension diff --git a/NetCasbin/Extensions/LoggerExtension.cs b/NetCasbin/Extensions/LoggerExtension.cs index dbc4e9dc..4264340b 100644 --- a/NetCasbin/Extensions/LoggerExtension.cs +++ b/NetCasbin/Extensions/LoggerExtension.cs @@ -1,9 +1,9 @@ -using System.Collections.Generic; +#if !NET45 +using System.Collections.Generic; using System.Linq; -#if !NET45 using Microsoft.Extensions.Logging; -namespace Casbin.Extensions +namespace Casbin { public static class LoggerExtension { diff --git a/NetCasbin/Extensions/Model/ModelExtension.cs b/NetCasbin/Extensions/Model/ModelExtension.cs index b39d7927..db31ab36 100644 --- a/NetCasbin/Extensions/Model/ModelExtension.cs +++ b/NetCasbin/Extensions/Model/ModelExtension.cs @@ -1,8 +1,7 @@ -using System; -using Casbin.Model; +using Casbin.Model; using Casbin.Rbac; -namespace Casbin.Extensions +namespace Casbin { public static class ModelExtension { diff --git a/NetCasbin/Extensions/Model/PolicyManagerExtension.cs b/NetCasbin/Extensions/Model/PolicyManagerExtension.cs index 353b8b25..3544a3fb 100644 --- a/NetCasbin/Extensions/Model/PolicyManagerExtension.cs +++ b/NetCasbin/Extensions/Model/PolicyManagerExtension.cs @@ -1,7 +1,7 @@ using Casbin.Model; using Casbin.Persist; -namespace Casbin.Extensions +namespace Casbin { public static class PolicyManagerExtension { diff --git a/NetCasbin/Extensions/Model/ReadOnlyAssertionExtension.cs b/NetCasbin/Extensions/Model/ReadOnlyAssertionExtension.cs index ce4dea68..d31fb382 100644 --- a/NetCasbin/Extensions/Model/ReadOnlyAssertionExtension.cs +++ b/NetCasbin/Extensions/Model/ReadOnlyAssertionExtension.cs @@ -1,6 +1,6 @@ using Casbin.Model; -namespace Casbin.Extensions +namespace Casbin { public static class ReadOnlyAssertionExtension { diff --git a/NetCasbin/Extensions/Model/SyncedModelExtension.cs b/NetCasbin/Extensions/Model/SyncedModelExtension.cs index 7b290276..8b103cc1 100644 --- a/NetCasbin/Extensions/Model/SyncedModelExtension.cs +++ b/NetCasbin/Extensions/Model/SyncedModelExtension.cs @@ -1,6 +1,6 @@ using Casbin.Model; -namespace Casbin.Extensions +namespace Casbin { public static class SyncedModelExtension { diff --git a/NetCasbin/Extensions/PolicyEffectExtension.cs b/NetCasbin/Extensions/PolicyEffectExtension.cs index eb27d63b..8cf034f2 100644 --- a/NetCasbin/Extensions/PolicyEffectExtension.cs +++ b/NetCasbin/Extensions/PolicyEffectExtension.cs @@ -1,6 +1,6 @@ using Casbin.Effect; -namespace Casbin.Extensions +namespace Casbin { internal static class PolicyEffectExtension { diff --git a/NetCasbin/Extensions/Rbac/RoleMangerExtension.cs b/NetCasbin/Extensions/Rbac/RoleMangerExtension.cs index 248741d5..a2a88d3f 100644 --- a/NetCasbin/Extensions/Rbac/RoleMangerExtension.cs +++ b/NetCasbin/Extensions/Rbac/RoleMangerExtension.cs @@ -1,7 +1,7 @@ using System; using Casbin.Rbac; -namespace Casbin.Extensions +namespace Casbin { public static class RoleMangerExtension { diff --git a/NetCasbin/Model/Assertion.cs b/NetCasbin/Model/Assertion.cs index 0ea4b879..d6c53acc 100644 --- a/NetCasbin/Model/Assertion.cs +++ b/NetCasbin/Model/Assertion.cs @@ -3,7 +3,6 @@ using System.Linq; using Casbin.Rbac; using Casbin.Util; -using Casbin.Extensions; namespace Casbin.Model { diff --git a/NetCasbin/Rbac/GroupRoleManager.cs b/NetCasbin/Rbac/GroupRoleManager.cs index da23d0c2..29060927 100644 --- a/NetCasbin/Rbac/GroupRoleManager.cs +++ b/NetCasbin/Rbac/GroupRoleManager.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; +using System.Linq; namespace Casbin.Rbac { diff --git a/NetCasbin/SyncedEnforcer.cs b/NetCasbin/SyncedEnforcer.cs index 18f817dd..bae4869a 100644 --- a/NetCasbin/SyncedEnforcer.cs +++ b/NetCasbin/SyncedEnforcer.cs @@ -1,6 +1,4 @@ -using System.IO; -using Casbin.Adapter.File; -using Casbin.Extensions; +using Casbin.Adapter.File; using Casbin.Model; using Casbin.Persist; diff --git a/NetCasbin/Util/BuiltInFunctions.cs b/NetCasbin/Util/BuiltInFunctions.cs index 8cf7c23d..3861d545 100644 --- a/NetCasbin/Util/BuiltInFunctions.cs +++ b/NetCasbin/Util/BuiltInFunctions.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Net; using System.Text.RegularExpressions; -using Casbin.Extensions; using Casbin.Rbac; namespace Casbin.Util