mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-02-27 14:46:02 +01:00
Remove unnecessary 'internal' keyword on classes
This commit is contained in:
parent
38b1057a4c
commit
b0ba4595ae
Browser/Adapters
CefBrowserComponent.csCefContextMenuActionRegistry.csCefContextMenuModel.csCefResourceHandlerRegistry.csCefSchemeHandlerFactory.csCefSchemeResourceVisitor.cs
lib
TweetLib.Core
Features
Systems/Configuration
TweetLib.Utils/Serialization/Converters
@ -13,7 +13,7 @@
|
||||
using IResourceRequestHandler = TweetLib.Browser.Interfaces.IResourceRequestHandler;
|
||||
|
||||
namespace TweetDuck.Browser.Adapters {
|
||||
internal abstract class CefBrowserComponent : IBrowserComponent {
|
||||
abstract class CefBrowserComponent : IBrowserComponent {
|
||||
public bool Ready { get; private set; }
|
||||
|
||||
public string Url => browser.Address;
|
||||
|
@ -3,7 +3,7 @@
|
||||
using CefSharp;
|
||||
|
||||
namespace TweetDuck.Browser.Adapters {
|
||||
internal sealed class CefContextMenuActionRegistry {
|
||||
sealed class CefContextMenuActionRegistry {
|
||||
private readonly Dictionary<CefMenuCommand, Action> actions = new Dictionary<CefMenuCommand, Action>();
|
||||
|
||||
public CefMenuCommand AddAction(Action action) {
|
||||
|
@ -6,7 +6,7 @@
|
||||
using TweetLib.Core.Features.Twitter;
|
||||
|
||||
namespace TweetDuck.Browser.Adapters {
|
||||
internal sealed class CefContextMenuModel : IContextMenuBuilder {
|
||||
sealed class CefContextMenuModel : IContextMenuBuilder {
|
||||
private readonly IMenuModel model;
|
||||
private readonly CefContextMenuActionRegistry actionRegistry;
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
using CefSharp;
|
||||
|
||||
namespace TweetDuck.Browser.Adapters {
|
||||
internal sealed class CefResourceHandlerRegistry {
|
||||
sealed class CefResourceHandlerRegistry {
|
||||
private readonly ConcurrentDictionary<string, Func<IResourceHandler>> resourceHandlers = new ConcurrentDictionary<string, Func<IResourceHandler>>(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
public bool HasHandler(string url) {
|
||||
|
@ -4,7 +4,7 @@
|
||||
using TweetLib.Browser.Interfaces;
|
||||
|
||||
namespace TweetDuck.Browser.Adapters {
|
||||
internal sealed class CefSchemeHandlerFactory : ISchemeHandlerFactory {
|
||||
sealed class CefSchemeHandlerFactory : ISchemeHandlerFactory {
|
||||
public static void Register(CefSettings settings, ICustomSchemeHandler handler) {
|
||||
settings.RegisterScheme(new CefCustomScheme {
|
||||
SchemeName = handler.Protocol,
|
||||
|
@ -6,7 +6,7 @@
|
||||
using TweetLib.Browser.Request;
|
||||
|
||||
namespace TweetDuck.Browser.Adapters {
|
||||
internal sealed class CefSchemeResourceVisitor : ISchemeResourceVisitor<IResourceHandler> {
|
||||
sealed class CefSchemeResourceVisitor : ISchemeResourceVisitor<IResourceHandler> {
|
||||
public static CefSchemeResourceVisitor Instance { get; } = new CefSchemeResourceVisitor();
|
||||
|
||||
private static readonly SchemeResource.Status FileIsEmpty = new SchemeResource.Status(HttpStatusCode.NoContent, "File is empty.");
|
||||
|
@ -5,7 +5,7 @@
|
||||
using TweetLib.Utils.Static;
|
||||
|
||||
namespace TweetLib.Core.Features {
|
||||
internal class BaseContextMenu : IContextMenuHandler {
|
||||
class BaseContextMenu : IContextMenuHandler {
|
||||
private readonly IBrowserComponent browser;
|
||||
private readonly FileDownloadManager fileDownloadManager;
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
using TweetLib.Core.Systems.Configuration;
|
||||
|
||||
namespace TweetLib.Core.Features.Plugins.Config {
|
||||
internal sealed class PluginConfigInstance : IConfigInstance {
|
||||
sealed class PluginConfigInstance : IConfigInstance {
|
||||
public PluginConfig Instance { get; }
|
||||
|
||||
private readonly string filename;
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
namespace TweetLib.Core.Features.Plugins {
|
||||
[SuppressMessage("ReSharper", "UnusedMember.Global")]
|
||||
internal sealed class PluginBridge {
|
||||
sealed class PluginBridge {
|
||||
private readonly Dictionary<int, Plugin> tokens = new ();
|
||||
private readonly Random rand = new ();
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
using TweetLib.Utils.Serialization;
|
||||
|
||||
namespace TweetLib.Core.Systems.Configuration {
|
||||
internal sealed class FileConfigInstance<T> : IConfigInstance where T : IConfigObject<T> {
|
||||
sealed class FileConfigInstance<T> : IConfigInstance where T : IConfigObject<T> {
|
||||
public T Instance { get; }
|
||||
|
||||
private readonly SimpleObjectSerializer<T> serializer;
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
|
||||
namespace TweetLib.Utils.Serialization.Converters {
|
||||
internal sealed class ClrTypeConverter : ITypeConverter {
|
||||
sealed class ClrTypeConverter : ITypeConverter {
|
||||
public static ITypeConverter Instance { get; } = new ClrTypeConverter();
|
||||
|
||||
private ClrTypeConverter() {}
|
||||
|
Loading…
Reference in New Issue
Block a user