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