diff --git a/src/Umbraco.Cms.Api.Management/Mapping/Package/PackageViewModelMapDefinition.cs b/src/Umbraco.Cms.Api.Management/Mapping/Package/PackageViewModelMapDefinition.cs
index 2503c304a6f3..67c541dafcb6 100644
--- a/src/Umbraco.Cms.Api.Management/Mapping/Package/PackageViewModelMapDefinition.cs
+++ b/src/Umbraco.Cms.Api.Management/Mapping/Package/PackageViewModelMapDefinition.cs
@@ -6,14 +6,13 @@
namespace Umbraco.Cms.Api.Management.Mapping.Package;
///
-/// Provides mapping configuration for converting package data to and from the .
+/// Provides mapping configuration for converting package data to and from the .
///
public class PackageViewModelMapDefinition : IMapDefinition
{
///
/// Configures the object-object mappings for package-related models used in the management API.
- /// This includes mappings between , ,
- /// , , and .
+ /// This includes mappings between , , and .
///
/// The instance used to register the mappings.
public void DefineMaps(IUmbracoMapper mapper)
@@ -22,8 +21,6 @@ public void DefineMaps(IUmbracoMapper mapper)
mapper.Define(
(_, _) => new PackageDefinitionResponseModel { Name = string.Empty, PackagePath = string.Empty },
Map);
- mapper.Define(
- (_, _) => new PackageMigrationStatusResponseModel { PackageName = string.Empty }, Map);
}
// Umbraco.Code.MapAll -Id -PackageId -PackagePath
@@ -65,16 +62,4 @@ private static void Map(PackageDefinition source, PackageDefinitionResponseModel
target.Languages = source.Languages;
target.DictionaryItems = source.DictionaryItems;
}
-
- // Umbraco.Code.MapAll
- [Obsolete("Please use the IPackagePresentationFactory instead. Scheduled for removal in Umbraco 18.")]
- private static void Map(InstalledPackage source, PackageMigrationStatusResponseModel target, MapperContext context)
- {
- if (source.PackageName is not null)
- {
- target.PackageName = source.PackageName;
- }
-
- target.HasPendingMigrations = source.HasPendingMigrations;
- }
}