From c192ade6a982a6d2d9121946793b4b7aafb09bb3 Mon Sep 17 00:00:00 2001 From: Skrypt Date: Mon, 22 Jun 2015 12:18:51 -0400 Subject: [PATCH] Removing commented code in migration --- .../Modules/Orchard.Autoroute/Migrations.cs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.Autoroute/Migrations.cs b/src/Orchard.Web/Modules/Orchard.Autoroute/Migrations.cs index 980e47ba6..1863bfcff 100644 --- a/src/Orchard.Web/Modules/Orchard.Autoroute/Migrations.cs +++ b/src/Orchard.Web/Modules/Orchard.Autoroute/Migrations.cs @@ -53,17 +53,6 @@ namespace Orchard.Autoroute { .AddColumn("UseCulturePattern", c => c.WithDefault(false)) ); - //we set the default pattern index from the deprecated setting - //foreach (ContentTypeDefinition contentTypeDefinition in ContentDefinitionManager.ListTypeDefinitions()) { - // foreach (ContentTypePartDefinition contentTypePartDefinition in contentTypeDefinition.Parts.Where(x => x.PartDefinition.Name == "AutoroutePart")) { - // var settings = contentTypePartDefinition.Settings.GetModel(); - // string patternIndex = contentTypePartDefinition.Settings["AutorouteSettings.DefaultPatternIndex"]; - // settings.DefaultPatterns = new List { new DefaultPattern { PatternIndex = patternIndex } }; - - // ContentDefinitionManager.AlterTypeDefinition(contentTypeDefinition.Name, builder => builder.WithPart("AutoroutePart", settings.Build)); - // } - //} - return 4; } }