summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.Interop/Interop/Providers
diff options
context:
space:
mode:
authorsr55 <[email protected]>2020-10-04 15:41:07 +0100
committersr55 <[email protected]>2020-10-04 15:41:15 +0100
commitde8f3c5586121dcdf2b3b415464d686b9e58e3d2 (patch)
tree24d5ad72d02c602f43280295f6d5d5b0e2b56678 /win/CS/HandBrake.Interop/Interop/Providers
parent561977956f39858d81e4786565466e63f8ddd430 (diff)
HandBrake.Interop: Library cleanup.
- Remove HbFunctions provider class and interface. It's not needed. Interop library will direct call libhb though HBFunctions.cs - Remove HbFunctionsDirect. Any consumer of the HandBrake API should be using managed calls rather than having to deal with pointers. - Fix many stylecop warnings and update rulesets around this.
Diffstat (limited to 'win/CS/HandBrake.Interop/Interop/Providers')
-rw-r--r--win/CS/HandBrake.Interop/Interop/Providers/HbFunctionsProvider.cs30
-rw-r--r--win/CS/HandBrake.Interop/Interop/Providers/Interfaces/IHbFunctionsProvider.cs18
2 files changed, 0 insertions, 48 deletions
diff --git a/win/CS/HandBrake.Interop/Interop/Providers/HbFunctionsProvider.cs b/win/CS/HandBrake.Interop/Interop/Providers/HbFunctionsProvider.cs
deleted file mode 100644
index 3b964ff8c..000000000
--- a/win/CS/HandBrake.Interop/Interop/Providers/HbFunctionsProvider.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-// --------------------------------------------------------------------------------------------------------------------
-// <copyright file="HbFunctionsProvider.cs" company="HandBrake Project (http://handbrake.fr)">
-// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
-// </copyright>
-// <summary>
-// Provides an instance of IHbFunctions for use by the GUI.
-// </summary>
-// --------------------------------------------------------------------------------------------------------------------
-
-namespace HandBrake.Interop.Interop.Providers
-{
- using HandBrake.Interop.Interop.HbLib.Wrappers;
- using HandBrake.Interop.Interop.HbLib.Wrappers.Interfaces;
- using HandBrake.Interop.Interop.Providers.Interfaces;
-
- public class HbFunctionsProvider : IHbFunctionsProvider
- {
- private static IHbFunctions hbFunctions;
-
- public IHbFunctions GetHbFunctionsWrapper()
- {
- if (hbFunctions == null)
- {
- hbFunctions = new HbFunctionsDirect();
- }
-
- return hbFunctions;
- }
- }
-}
diff --git a/win/CS/HandBrake.Interop/Interop/Providers/Interfaces/IHbFunctionsProvider.cs b/win/CS/HandBrake.Interop/Interop/Providers/Interfaces/IHbFunctionsProvider.cs
deleted file mode 100644
index f64f54594..000000000
--- a/win/CS/HandBrake.Interop/Interop/Providers/Interfaces/IHbFunctionsProvider.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// --------------------------------------------------------------------------------------------------------------------
-// <copyright file="IHbFunctionsProvider.cs" company="HandBrake Project (http://handbrake.fr)">
-// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
-// </copyright>
-// <summary>
-// Provides an instance of IHbFunctions for use by the GUI.
-// </summary>
-// --------------------------------------------------------------------------------------------------------------------
-
-namespace HandBrake.Interop.Interop.Providers.Interfaces
-{
- using HandBrake.Interop.Interop.HbLib.Wrappers.Interfaces;
-
- public interface IHbFunctionsProvider
- {
- IHbFunctions GetHbFunctionsWrapper();
- }
-} \ No newline at end of file