From c66d49dbfe7eec1433a56eb6a9640a0e6b056a7c Mon Sep 17 00:00:00 2001 From: Stephan Date: Mon, 28 Oct 2013 01:00:29 +0100 Subject: [PATCH] PublishedContent - remove useles code in model factory --- .../Models/PublishedContent/PublishedContentModelFactoryImpl.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedContentModelFactoryImpl.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedContentModelFactoryImpl.cs index af2bdd6859..7bc0343add 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedContentModelFactoryImpl.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedContentModelFactoryImpl.cs @@ -22,8 +22,6 @@ namespace Umbraco.Core.Models.PublishedContent foreach (var type in types) { - if (type.Inherits() == false) - throw new InvalidOperationException(string.Format("Type {0} is marked with PublishedContentModel attribute but does not inherit from PublishedContentExtended.", type.FullName)); var constructor = type.GetConstructor(ctorArgTypes); if (constructor == null) throw new InvalidOperationException(string.Format("Type {0} is missing a public constructor with one argument of type IPublishedContent.", type.FullName));