Skip to content

Commit

Permalink
fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelbannov committed Feb 7, 2022
1 parent 9f5a1f3 commit b2079cc
Show file tree
Hide file tree
Showing 27 changed files with 104 additions and 149 deletions.
1 change: 0 additions & 1 deletion common/ASC.Api.Core/Core/BaseStartup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Diagnostics.HealthChecks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http.Extensions;
using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Authorization;
Expand Down
2 changes: 0 additions & 2 deletions common/ASC.Common/Caching/AscCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
using System.Runtime.Caching;
using System.Text.RegularExpressions;

using Google.Protobuf;

using Microsoft.Extensions.Caching.Memory;

namespace ASC.Common.Caching
Expand Down
1 change: 0 additions & 1 deletion common/ASC.Common/Utils/RandomString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/


using System;
using System.Security.Cryptography;
using System.Text;

Expand Down
1 change: 0 additions & 1 deletion common/ASC.Core.Common/Billing/CouponManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Security.Cryptography;
using System.Text;
Expand Down
1 change: 0 additions & 1 deletion common/ASC.Core.Common/Billing/License/LicenseReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

using System;
using System.IO;
using System.Linq;

using ASC.Common;
using ASC.Common.Logging;
Expand Down
1 change: 0 additions & 1 deletion common/ASC.Core.Common/Core/UserGroupRef.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
using System;
using System.Diagnostics;

using ASC.Common.Caching;
using ASC.Core.Caching;

namespace ASC.Core
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/


using System;
using System.Collections.Generic;

using ASC.Common.Module;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

using System;
using System.Collections.Generic;
using System.Linq;

using ASC.Common;
using ASC.Common.Caching;
Expand Down
1 change: 0 additions & 1 deletion common/ASC.Data.Backup.Core/Core/DbHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
using ASC.Common.Utils;
using ASC.Core.Common.EF;
using ASC.Core.Common.EF.Context;
using ASC.Data.Backup.EF.Context;

using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options;
Expand Down
1 change: 0 additions & 1 deletion common/ASC.Data.Backup.Core/Storage/BackupRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

using ASC.Common;
using ASC.Core.Common.EF;
using ASC.Core.Common.EF.Context;
using ASC.Core.Tenants;
using ASC.Data.Backup.EF.Context;
using ASC.Data.Backup.EF.Model;
Expand Down
1 change: 0 additions & 1 deletion common/ASC.Data.Backup.Core/Tasks/Data/TableInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;

namespace ASC.Data.Backup.Tasks.Data
{
Expand Down
3 changes: 0 additions & 3 deletions common/services/ASC.Data.Backup/GlobalUsings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,4 @@
global using Microsoft.Extensions.Hosting;
global using Microsoft.Extensions.Options;

global using StackExchange.Redis.Extensions.Core.Configuration;
global using StackExchange.Redis.Extensions.Newtonsoft;

global using static ASC.Data.Backup.BackupAjaxHandler;
3 changes: 0 additions & 3 deletions common/services/ASC.TelegramService/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

using StackExchange.Redis.Extensions.Core.Configuration;
using StackExchange.Redis.Extensions.Newtonsoft;

namespace ASC.TelegramService
{
public class Startup : BaseStartup
Expand Down
1 change: 0 additions & 1 deletion products/ASC.Files/Core/Core/FileStorageService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
using ASC.Core.Common.Settings;
using ASC.Core.Users;
using ASC.Data.Storage;
using ASC.ElasticSearch;
using ASC.FederatedLogin.LoginProviders;
using ASC.Files.Core;
using ASC.Files.Core.Resources;
Expand Down
1 change: 0 additions & 1 deletion products/ASC.Files/Core/Helpers/ThirdpartyConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

using System;
using System.Collections.Generic;
using System.Linq;

using ASC.Common;
using ASC.Core.Common.Configuration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ internal void SetConfiguration(Configuration<T> configuration)
Logo.SetConfiguration(_configuration);
}

private string _gobackUrl;
//private string _gobackUrl;
public bool IsRetina { get; set; } = false;


Expand Down Expand Up @@ -726,13 +726,13 @@ public GobackConfig Goback
{
if (_configuration.EditorType == EditorType.Embedded || _configuration.EditorType == EditorType.External) return null;
if (!AuthContext.IsAuthenticated) return null;
if (_gobackUrl != null)
{
return new GobackConfig
{
Url = _gobackUrl,
};
}
//if (_gobackUrl != null)
//{
// return new GobackConfig
// {
// Url = _gobackUrl,
// };
//}

var folderDao = DaoFactory.GetFolderDao<T>();
try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Text.Json;
Expand Down

0 comments on commit b2079cc

Please sign in to comment.