Skip to content

Commit 81f02fa

Browse files
committed
refactoring: reduced dependency
1 parent 3861f3c commit 81f02fa

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

source/modules/AddInConfiguration.cls

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Attribute VB_Exposed = False
2222
'<codelib>
2323
' <file>_codelib/addins/shared/AddInConfiguration.cls</file>
2424
' <license>_codelib/license.bas</license>
25-
' <use>base/ApplicationHandler.cls</use>
2625
' <ref><name>DAO</name><major>5</major><minor>0</minor><guid>{00025E01-0000-0000-C000-000000000046}</guid></ref>
2726
'</codelib>
2827
'---------------------------------------------------------------------------------------
@@ -260,7 +259,7 @@ HandleErr:
260259
Resume ExitHere
261260
End If
262261

263-
HandleError Err.Number, Err.Source, Err.Description, aclibErrRaise
262+
Err.Raise Err.Number, "AddInConfiguration.SetDbProperty->" & Err.Source, Err.Description
264263

265264
End Sub
266265

@@ -281,7 +280,7 @@ HandleErr:
281280
Resume ExitHere
282281
End If
283282

284-
HandleError Err.Number, Err.Source, Err.Description, aclibErrRaise
283+
Err.Raise Err.Number, "AddInConfiguration.SetDocProperty->" & Err.Source, Err.Description
285284

286285
End Sub
287286

source/modules/AddInInstaller.cls

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Attribute VB_Exposed = False
2323
' <file>_codelib/addins/shared/AddInInstaller.cls</file>
2424
' <license>_codelib/license.bas</license>
2525
' <use>_codelib/addins/shared/AddInConfiguration.cls</use>
26-
' <use>file/FileTools.bas</use>
2726
' <ref><name>DAO</name><major>5</major><minor>0</minor><guid>{00025E01-0000-0000-C000-000000000046}</guid></ref>
2827
'</codelib>
2928
'---------------------------------------------------------------------------------------
@@ -104,9 +103,11 @@ Private Function DeleteAddInFiles()
104103
End Function
105104

106105
Private Function DeleteFile(File2Delete)
107-
If FileTools.FileExists(File2Delete) Then
108-
Kill File2Delete
109-
End If
106+
With CreateObject("Scripting.FileSystemObject")
107+
If .FileExists(File2Delete) Then
108+
.DeleteFile File2Delete, True
109+
End If
110+
End With
110111
End Function
111112

112113
Private Function TryFileCopy(ByVal SourceFilePath As String, ByVal DestFilePath As String) As Boolean

0 commit comments

Comments
 (0)