Removes unused "ModuleManager" (#11918)
This commit is contained in:
committed by
GitHub
parent
6eb1d33e34
commit
ebff854c55
@@ -7,7 +7,6 @@ using Content.Client.Eui;
|
||||
using Content.Client.GhostKick;
|
||||
using Content.Client.Info;
|
||||
using Content.Client.Launcher;
|
||||
using Content.Client.Module;
|
||||
using Content.Client.Parallax.Managers;
|
||||
using Content.Client.Players.PlayTimeTracking;
|
||||
using Content.Client.Preferences;
|
||||
@@ -27,7 +26,6 @@ namespace Content.Client.IoC
|
||||
{
|
||||
IoCManager.Register<IParallaxManager, ParallaxManager>();
|
||||
IoCManager.Register<IChatManager, ChatManager>();
|
||||
IoCManager.Register<IModuleManager, ClientModuleManager>();
|
||||
IoCManager.Register<IClientPreferencesManager, ClientPreferencesManager>();
|
||||
IoCManager.Register<IStylesheetManager, StylesheetManager>();
|
||||
IoCManager.Register<IScreenshotHook, ScreenshotHook>();
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
using Content.Shared.Module;
|
||||
|
||||
namespace Content.Client.Module
|
||||
{
|
||||
/// <summary>
|
||||
/// Client implementation of IModuleManager.
|
||||
/// Provides simple way for shared code to check if it's being run by
|
||||
/// the client of the server.
|
||||
/// </summary>
|
||||
public sealed class ClientModuleManager : IModuleManager
|
||||
{
|
||||
bool IModuleManager.IsClientModule => true;
|
||||
bool IModuleManager.IsServerModule => false;
|
||||
}
|
||||
}
|
||||
@@ -10,7 +10,6 @@ using Content.Server.EUI;
|
||||
using Content.Server.GhostKick;
|
||||
using Content.Server.Info;
|
||||
using Content.Server.Maps;
|
||||
using Content.Server.Module;
|
||||
using Content.Server.MoMMI;
|
||||
using Content.Server.NodeContainer.NodeGroups;
|
||||
using Content.Server.Objectives;
|
||||
@@ -33,7 +32,6 @@ namespace Content.Server.IoC
|
||||
IoCManager.Register<IChatManager, ChatManager>();
|
||||
IoCManager.Register<IChatSanitizationManager, ChatSanitizationManager>();
|
||||
IoCManager.Register<IMoMMILink, MoMMILink>();
|
||||
IoCManager.Register<IModuleManager, ServerModuleManager>();
|
||||
IoCManager.Register<IServerPreferencesManager, ServerPreferencesManager>();
|
||||
IoCManager.Register<IServerDbManager, ServerDbManager>();
|
||||
IoCManager.Register<RecipeManager, RecipeManager>();
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
using Content.Shared.Module;
|
||||
|
||||
namespace Content.Server.Module
|
||||
{
|
||||
/// <summary>
|
||||
/// Server implementation of IModuleManager.
|
||||
/// Provides simple way for shared code to check if it's being run by
|
||||
/// the client of the server.
|
||||
/// </summary>
|
||||
public sealed class ServerModuleManager : IModuleManager
|
||||
{
|
||||
bool IModuleManager.IsClientModule => false;
|
||||
bool IModuleManager.IsServerModule => true;
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
namespace Content.Shared.Module
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides a simple way to check whether calling code is being run by
|
||||
/// Robust.Client, or Robust.Server. Useful for code in Content.Shared
|
||||
/// that wants different behavior depending on if client or server is using it.
|
||||
/// </summary>
|
||||
public interface IModuleManager
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns true if the code is being run by the client, returns false otherwise.
|
||||
/// </summary>
|
||||
bool IsClientModule { get; }
|
||||
/// <summary>
|
||||
/// Returns true if the code is being run by the server, returns false otherwise.
|
||||
/// </summary>
|
||||
bool IsServerModule { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user