Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using Umbraco.Cms.Api.Management.ViewModels.Element;
using Umbraco.Cms.Api.Management.ViewModels.Media;
using Umbraco.Cms.Api.Management.ViewModels.MediaType;
using Umbraco.Cms.Api.Management.ViewModels.Member;
using Umbraco.Cms.Api.Management.ViewModels.MemberType;
using Umbraco.Cms.Core.Configuration.Models;
using Umbraco.Cms.Core.Features;
Expand Down Expand Up @@ -73,13 +72,6 @@ public DocumentTypeConfigurationResponseModel CreateDocumentTypeConfigurationRes
ReservedFieldNames = _reservedFieldNamesService.GetDocumentReservedFieldNames(),
};

/// <summary>
/// Instantiates and returns a new <see cref="MemberConfigurationResponseModel"/>.
/// </summary>
/// <returns>A new <see cref="MemberConfigurationResponseModel"/>.</returns>
public MemberConfigurationResponseModel CreateMemberConfigurationResponseModel() =>
new();

/// <summary>
/// Creates a <see cref="Umbraco.Cms.Api.Management.Models.MemberTypeConfigurationResponseModel"/> containing the reserved member field names.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Umbraco.Cms.Api.Management.ViewModels.Element;
using Umbraco.Cms.Api.Management.ViewModels.Media;
using Umbraco.Cms.Api.Management.ViewModels.MediaType;
using Umbraco.Cms.Api.Management.ViewModels.Member;
using Umbraco.Cms.Api.Management.ViewModels.MemberType;

namespace Umbraco.Cms.Api.Management.Factories;
Expand All @@ -26,12 +25,6 @@ public interface IConfigurationPresentationFactory
DocumentTypeConfigurationResponseModel CreateDocumentTypeConfigurationResponseModel()
=> throw new NotImplementedException();

/// <summary>
/// Creates a response model representing the member configuration.
/// </summary>
/// <returns>A <see cref="Umbraco.Cms.Api.Management.Models.MemberConfigurationResponseModel"/> instance.</returns>
MemberConfigurationResponseModel CreateMemberConfigurationResponseModel();

/// <summary>
/// Creates and returns a new <see cref="Umbraco.Cms.Api.Management.Models.MemberTypeConfigurationResponseModel"/> instance.
/// </summary>
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion src/Umbraco.Core/DependencyInjection/UmbracoBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,7 @@

Services.AddSingleton<LegacyPasswordSecurity>();
Services.AddSingleton<UserEditorAuthorizationHelper>();
Services.AddSingleton<ContentPermissions>();

Check notice on line 252 in src/Umbraco.Core/DependencyInjection/UmbracoBuilder.cs

View check run for this annotation

CodeScene Delta Analysis / CodeScene Code Health Review (v18/dev)

✅ Getting better: Large Method

AddCoreServices decreases from 237 to 236 lines of code, threshold = 70. Large functions with many lines of code are generally harder to understand and lower the code health. Avoid adding more lines to this function.
Services.AddSingleton<MediaPermissions>();

Services.AddSingleton<PropertyEditorCollection>();

Expand Down
17 changes: 1 addition & 16 deletions src/Umbraco.Core/Mail/IEmailSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,7 @@ public interface IEmailSender
/// <summary>
/// Sends a message asynchronously.
/// </summary>
[Obsolete("Please use the overload with expires parameter. Scheduled for removal in Umbraco 18.")]
Task SendAsync(EmailMessage message, string emailType);

/// <summary>
/// Sends a message asynchronously.
/// </summary>
[Obsolete("Please use the overload with expires parameter. Scheduled for removal in Umbraco 18.")]
Task SendAsync(EmailMessage message, string emailType, bool enableNotification);

/// <summary>
/// Sends a message asynchronously.
/// </summary>
Task SendAsync(EmailMessage message, string emailType, bool enableNotification = false, TimeSpan? expires = null)
#pragma warning disable CS0618 // Type or member is obsolete
=> SendAsync(message, emailType, enableNotification);
#pragma warning restore CS0618 // Type or member is obsolete
Task SendAsync(EmailMessage message, string emailType, bool enableNotification = false, TimeSpan? expires = null);

/// <summary>
/// Verifies if the email sender is configured to send emails.
Expand Down
12 changes: 1 addition & 11 deletions src/Umbraco.Core/Mail/NotImplementedEmailSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,7 @@ namespace Umbraco.Cms.Core.Mail;
internal sealed class NotImplementedEmailSender : IEmailSender
{
/// <inheritdoc />
public Task SendAsync(EmailMessage message, string emailType)
=> throw new NotImplementedException(
"To send an Email ensure IEmailSender is implemented with a custom implementation");

/// <inheritdoc />
public Task SendAsync(EmailMessage message, string emailType, bool enableNotification) =>
throw new NotImplementedException(
"To send an Email ensure IEmailSender is implemented with a custom implementation");

/// <inheritdoc />
public Task SendAsync(EmailMessage message, string emailType, bool enableNotification, TimeSpan? expires) =>
public Task SendAsync(EmailMessage message, string emailType, bool enableNotification = false, TimeSpan? expires = null) =>
throw new NotImplementedException(
"To send an Email ensure IEmailSender is implemented with a custom implementation");

Expand Down
111 changes: 0 additions & 111 deletions src/Umbraco.Core/Security/MediaPermissions.cs

This file was deleted.

8 changes: 0 additions & 8 deletions src/Umbraco.Infrastructure/Mail/EmailSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@ public EmailSender(
globalSettings.OnChange(x => _globalSettings = x);
}

/// <inheritdoc/>
public async Task SendAsync(EmailMessage message, string emailType) =>
await SendAsyncInternal(message, emailType, false, null);

/// <inheritdoc/>
public async Task SendAsync(EmailMessage message, string emailType, bool enableNotification) =>
await SendAsyncInternal(message, emailType, enableNotification, null);

/// <inheritdoc/>
public async Task SendAsync(EmailMessage message, string emailType, bool enableNotification = false, TimeSpan? expires = null) =>
await SendAsyncInternal(message, emailType, enableNotification, expires);
Expand Down
Loading
Loading