Removal of ChannelManager where not in use.

This commit is contained in:
Tom 2024-12-27 23:54:33 +00:00
parent 21cb5c9453
commit 525725a7e5
4 changed files with 3 additions and 12 deletions

View File

@ -1,6 +1,5 @@
using HermesSocketLibrary.Requests.Messages; using HermesSocketLibrary.Requests.Messages;
using HermesSocketServer.Models; using HermesSocketServer.Models;
using HermesSocketServer.Services;
using ILogger = Serilog.ILogger; using ILogger = Serilog.ILogger;
namespace HermesSocketServer.Requests namespace HermesSocketServer.Requests
@ -9,12 +8,10 @@ namespace HermesSocketServer.Requests
{ {
public string Name => "get_tts_word_filters"; public string Name => "get_tts_word_filters";
public string[] RequiredKeys => []; public string[] RequiredKeys => [];
private ChannelManager _channels;
private ILogger _logger; private ILogger _logger;
public GetTTSWordFilters(ChannelManager channels, ILogger logger) public GetTTSWordFilters(ILogger logger)
{ {
_channels = channels;
_logger = logger; _logger = logger;
} }

View File

@ -1,5 +1,4 @@
using HermesSocketServer.Models; using HermesSocketServer.Models;
using HermesSocketServer.Services;
using ILogger = Serilog.ILogger; using ILogger = Serilog.ILogger;
namespace HermesSocketServer.Requests namespace HermesSocketServer.Requests
@ -8,12 +7,10 @@ namespace HermesSocketServer.Requests
{ {
public string Name => "update_policy"; public string Name => "update_policy";
public string[] RequiredKeys => ["id", "groupId", "path", "count", "span"]; public string[] RequiredKeys => ["id", "groupId", "path", "count", "span"];
private ChannelManager _channels;
private ILogger _logger; private ILogger _logger;
public UpdatePolicy(ChannelManager channels, ILogger logger) public UpdatePolicy(ILogger logger)
{ {
_channels = channels;
_logger = logger; _logger = logger;
} }

View File

@ -9,12 +9,10 @@ namespace HermesSocketServer.Requests
{ {
public string Name => "update_tts_filter"; public string Name => "update_tts_filter";
public string[] RequiredKeys => ["id", "search", "replace"]; public string[] RequiredKeys => ["id", "search", "replace"];
private ChannelManager _channels;
private ILogger _logger; private ILogger _logger;
public UpdateTTSFilter(ChannelManager channels, ILogger logger) public UpdateTTSFilter(ILogger logger)
{ {
_channels = channels;
_logger = logger; _logger = logger;
} }

View File

@ -9,7 +9,6 @@ namespace HermesSocketServer.Requests
{ {
public string Name => "update_tts_user"; public string Name => "update_tts_user";
public string[] RequiredKeys => ["chatter", "voice"]; public string[] RequiredKeys => ["chatter", "voice"];
private ChannelManager _channels;
private Database _database; private Database _database;
private readonly ServerConfiguration _configuration; private readonly ServerConfiguration _configuration;
private ILogger _logger; private ILogger _logger;