From b85a394b50cc8ba7814dd9d1556ce19a586769db Mon Sep 17 00:00:00 2001 From: Nice3point Date: Mon, 13 May 2024 21:02:46 +0300 Subject: [PATCH] Cleanup code --- .../Core/ComponentModel/Descriptors/FamilyDescriptor.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/source/RevitLookup/Core/ComponentModel/Descriptors/FamilyDescriptor.cs b/source/RevitLookup/Core/ComponentModel/Descriptors/FamilyDescriptor.cs index b176802c..9f8e27ca 100644 --- a/source/RevitLookup/Core/ComponentModel/Descriptors/FamilyDescriptor.cs +++ b/source/RevitLookup/Core/ComponentModel/Descriptors/FamilyDescriptor.cs @@ -35,12 +35,6 @@ public FamilyDescriptor(Family family) public void RegisterExtensions(IExtensionManager manager) { - // if (manager.Context.IsFamilyDocument) return; - - manager.Register(nameof(FamilySizeTableManager.GetFamilySizeTableManager), context => - { - var result = FamilySizeTableManager.GetFamilySizeTableManager(context, _family.Id); - return Variants.Single(result); - }); + manager.Register(nameof(FamilySizeTableManager.GetFamilySizeTableManager), context => FamilySizeTableManager.GetFamilySizeTableManager(context, _family.Id)); } } \ No newline at end of file