Skip to content

Commit 553e8f2

Browse files
committed
Remove unused device serializer
1 parent e93d2b6 commit 553e8f2

9 files changed

+3
-47
lines changed

App.config

-3
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,6 @@
116116
<setting name="DreamCheeky_Enable" serializeAs="String">
117117
<value>False</value>
118118
</setting>
119-
<setting name="Global_Experimental" serializeAs="String">
120-
<value>False</value>
121-
</setting>
122119
<setting name="Global_CarMode" serializeAs="String">
123120
<value>False</value>
124121
</setting>

Form1.vb

-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
Me.Hide()
1010
modGlobal.UnloadModules()
1111
SysTrayIcon.Visible = False
12-
13-
If My.Settings.Global_Experimental = True Then
14-
My.Application.Log.WriteEntry("EXPERIMENTAL: Attempting to save DeviceCollection")
15-
modGlobal.SaveCollection()
16-
End If
1712
End Sub
1813

1914
Private Sub frmMain_Load(sender As Object, e As EventArgs) Handles MyBase.Load

HAController.vbproj

-3
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,6 @@
160160
<Reference Include="System.Core" />
161161
<Reference Include="System.Xml.Linq" />
162162
<Reference Include="System.Data.DataSetExtensions" />
163-
<Reference Include="XmlSerializerHelper, Version=4.0.19096.1, Culture=neutral, processorArchitecture=MSIL">
164-
<HintPath>packages\XmlSerializerHelper.4.0.19096.1\lib\net45\XmlSerializerHelper.dll</HintPath>
165-
</Reference>
166163
</ItemGroup>
167164
<ItemGroup>
168165
<Import Include="Microsoft.VisualBasic" />

My Project/Settings.Designer.vb

-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

My Project/Settings.settings

-3
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@
8686
<Setting Name="DreamCheeky_Enable" Type="System.Boolean" Scope="User">
8787
<Value Profile="(Default)">False</Value>
8888
</Setting>
89-
<Setting Name="Global_Experimental" Type="System.Boolean" Scope="User">
90-
<Value Profile="(Default)">False</Value>
91-
</Setting>
9289
<Setting Name="Global_LogFileURI" Type="System.String" Scope="Application">
9390
<Value Profile="(Default)">C:\HAC\HAClog.txt</Value>
9491
</Setting>

modConverse.vb

-6
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ Module modConverse
8383
strCommandResponse = frmMain.DisableCarMode()
8484
Case "dreamcheeky"
8585
strCommandResponse = modDreamCheeky.Disable()
86-
Case "experiments"
87-
My.Settings.Global_Experimental = False
88-
strCommandResponse = "Experimental mode off"
8986
Case "gps"
9087
strCommandResponse = modGPS.Disable()
9188
Case "imap"
@@ -147,9 +144,6 @@ Module modConverse
147144
strCommandResponse = frmMain.EnableCarMode()
148145
Case "dreamcheeky"
149146
strCommandResponse = modDreamCheeky.Enable()
150-
Case "experiments"
151-
My.Settings.Global_Experimental = True
152-
strCommandResponse = "Experimental mode on"
153147
Case "gps"
154148
strCommandResponse = modGPS.Enable()
155149
Case "imap"

modGlobal.vb

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
Imports System.IO
2-
Imports System.Xml.Serialization
3-
4-
' modGlobal cannot be disabled, Disable and Enable methods will be skipped
1+
' modGlobal cannot be disabled, Disable and Enable methods will be skipped
52

63
Public Module modGlobal
74
Public HomeStatus As String
@@ -63,16 +60,6 @@ Public Module modGlobal
6360
My.Application.Log.WriteEntry("Module loading complete")
6461
End Sub
6562

66-
Sub SaveCollection()
67-
Dim targetFile As New StreamWriter("C:\HAC\DeviceCollection.xml")
68-
Dim serializedString As String = ""
69-
70-
serializedString = XmlSerializerHelper.Current.SerializeToXml(DeviceCollection, True)
71-
72-
targetFile.Write(serializedString)
73-
targetFile.Close()
74-
End Sub
75-
7663
Sub SetHomeStatus(ByVal ChangeHomeStatus As String)
7764
' TODO: This could probably use some sort of change countdown with the scheduler
7865
modGlobal.HomeStatus = ChangeHomeStatus

packages.config

-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@
2020
<package id="System.Text.Json" version="9.0.2" targetFramework="net48" />
2121
<package id="System.Threading.Tasks.Extensions" version="4.6.0" targetFramework="net48" />
2222
<package id="System.ValueTuple" version="4.5.0" targetFramework="net48" />
23-
<package id="XmlSerializerHelper" version="4.0.19096.1" targetFramework="net48" />
2423
</packages>

scripts/removeoldfiles.bat

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ del /q C:\HAC\Common.Logging.Core.xml
44
del /q C:\HAC\Common.Logging.dll
55
del /q C:\HAC\Common.Logging.pdb
66
del /q C:\HAC\Common.Logging.xml
7+
del /q C:\HAC\DeviceCollection.xml
78
del /q C:\HAC\EntityFramework.dll
89
del /q C:\HAC\EntityFramework.SqlServer.dll
910
del /q C:\HAC\EntityFramework.SqlServer.xml
@@ -14,6 +15,7 @@ del /q C:\HAC\Quartz.pdb
1415
del /q C:\HAC\Quartz.xml
1516
del /q C:\HAC\System.Data.SQLite.EF6.dll
1617
del /q C:\HAC\System.Data.SQLite.Linq.dll
18+
del /q C:\HAC\XmlSerializerHelper.dll
1719
del /q C:\HAC\scripts\agent0.zip
1820
del /q C:\HAC\scripts\agent1.zip
1921
del /q C:\HAC\scripts\agent2.zip

0 commit comments

Comments
 (0)