aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/slskd/Common/CacheKey.cs24
-rw-r--r--src/slskd/Program.cs3
2 files changed, 0 insertions, 27 deletions
diff --git a/src/slskd/Common/CacheKey.cs b/src/slskd/Common/CacheKey.cs
deleted file mode 100644
index 039d144d..00000000
--- a/src/slskd/Common/CacheKey.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-// <copyright file="CacheKey.cs" company="slskd Team">
-// Copyright (c) slskd Team. All rights reserved.
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-//
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see https://www.gnu.org/licenses/.
-// </copyright>
-
-namespace slskd
-{
- public static class CacheKey
- {
- public static readonly string StaticFiles = "StaticFiles";
- }
-} \ No newline at end of file
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index 5a0749a1..12777a77 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -28,7 +28,6 @@ namespace slskd
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Text.Json.Serialization;
- using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Builder;
@@ -37,7 +36,6 @@ namespace slskd
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.ApiExplorer;
using Microsoft.EntityFrameworkCore;
- using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.FileProviders;
@@ -180,7 +178,6 @@ namespace slskd
private static IConfigurationRoot Configuration { get; set; }
private static OptionsAtStartup OptionsAtStartup { get; } = new OptionsAtStartup();
private static ILogger Log { get; set; } = new ConsoleWriteLineLogger();
- private static MemoryCache Cache { get; } = new MemoryCache(new MemoryCacheOptions());
[Argument('g', "generate-cert", "generate X509 certificate and password for HTTPs")]
private static bool GenerateCertificate { get; set; }