From f641b7f11ce86e988518e169ba5776a5252bea2b Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Tue, 17 Jul 2018 02:30:03 -0500 Subject: [PATCH] Removed unused component --- DS4Windows/DS4Control/ScpHub.Designer.cs | 36 ---------- DS4Windows/DS4Control/ScpHub.cs | 87 ------------------------ DS4Windows/DS4Windows.csproj | 6 -- 3 files changed, 129 deletions(-) delete mode 100644 DS4Windows/DS4Control/ScpHub.Designer.cs delete mode 100644 DS4Windows/DS4Control/ScpHub.cs diff --git a/DS4Windows/DS4Control/ScpHub.Designer.cs b/DS4Windows/DS4Control/ScpHub.Designer.cs deleted file mode 100644 index ed08d0c..0000000 --- a/DS4Windows/DS4Control/ScpHub.Designer.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace DS4Windows -{ - partial class ScpHub - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - components = new System.ComponentModel.Container(); - } - - #endregion - } -} diff --git a/DS4Windows/DS4Control/ScpHub.cs b/DS4Windows/DS4Control/ScpHub.cs deleted file mode 100644 index fd7031a..0000000 --- a/DS4Windows/DS4Control/ScpHub.cs +++ /dev/null @@ -1,87 +0,0 @@ -using System; -using System.ComponentModel; - -namespace DS4Windows -{ - public partial class ScpHub : Component - { - protected IntPtr m_Reference = IntPtr.Zero; - protected volatile Boolean m_Started = false; - - public event EventHandler Debug = null; - - public event EventHandler Report = null; - - protected virtual Boolean LogDebug(String Data, bool warning) - { - DebugEventArgs args = new DebugEventArgs(Data, warning); - - On_Debug(this, args); - - return true; - } - - public Boolean Active - { - get { return m_Started; } - } - - - public ScpHub() - { - InitializeComponent(); - } - - public ScpHub(IContainer container) - { - container.Add(this); - - InitializeComponent(); - } - - - public virtual Boolean Open() - { - return true; - } - - public virtual Boolean Start() - { - return m_Started; - } - - public virtual Boolean Stop() - { - return !m_Started; - } - - public virtual Boolean Close() - { - if (m_Reference != IntPtr.Zero) ScpDevice.UnregisterNotify(m_Reference); - - return !m_Started; - } - - - public virtual Boolean Suspend() - { - return true; - } - - public virtual Boolean Resume() - { - return true; - } - - protected virtual void On_Debug(object sender, DebugEventArgs e) - { - if (Debug != null) Debug(sender, e); - } - - - protected virtual void On_Report(object sender, ReportEventArgs e) - { - if (Report != null) Report(sender, e); - } - } -} diff --git a/DS4Windows/DS4Windows.csproj b/DS4Windows/DS4Windows.csproj index f027649..43bdf25 100644 --- a/DS4Windows/DS4Windows.csproj +++ b/DS4Windows/DS4Windows.csproj @@ -151,12 +151,6 @@ ScpDevice.cs - - Component - - - ScpHub.cs - Component