Files: removed unused code

This commit is contained in:
pavelbannov 2021-10-19 15:49:52 +03:00
parent 9f12c95828
commit 017d3675a5
2 changed files with 1 additions and 6 deletions

View File

@ -29,7 +29,6 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\common\ASC.Api.Core\ASC.Api.Core.csproj" />
<ProjectReference Include="..\..\..\common\ASC.Webhooks.Core\ASC.Webhooks.Core.csproj" />
<ProjectReference Include="..\Core\ASC.Files.Core.csproj" />
</ItemGroup>
<ItemGroup>

View File

@ -57,7 +57,6 @@ using ASC.Web.Files.Services.WCFService.FileOperations;
using ASC.Web.Files.Utils;
using ASC.Web.Studio.Core;
using ASC.Web.Studio.Utility;
using ASC.Webhooks.Core;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
@ -100,7 +99,6 @@ namespace ASC.Api.Documents
private ProductEntryPoint ProductEntryPoint { get; }
private TenantManager TenantManager { get; }
private FileUtility FileUtility { get; }
private WebhookPublisher WebhookPublisher { get; }
/// <summary>
/// </summary>
@ -1017,9 +1015,7 @@ namespace ASC.Api.Documents
[Create("{folderId:int}/file")]
public FileWrapper<int> CreateFileFromBody(int folderId, [FromBody] CreateFileModel<int> model)
{
var response = FilesControllerHelperInt.CreateFile(folderId, model.Title, model.TemplateId, model.EnableExternalExt);
//WebhookPublisher.Publish(EventName.NewFileCreated, response);
return response;
return FilesControllerHelperInt.CreateFile(folderId, model.Title, model.TemplateId, model.EnableExternalExt);
}
[Create("{folderId:int}/file")]