Skip to content

Commit 641cdf8

Browse files
author
delphidabbler
committed
Remove CheckForUpdates and SetCheckForUpdatesAction methods from notifier
Also removed associated fCheckForUpdatesAction field
1 parent a909e28 commit 641cdf8

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

Src/IntfNotifier.pas

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ interface
7777
/// <summary>Displays news items from the CodeSnip news feed.</summary>
7878
procedure ShowNews;
7979

80-
// TODO -cNotifier: remove this method and remove from external object
81-
/// <summary>Checks for program updates.</summary>
82-
procedure CheckForUpdates;
83-
8480
/// <summary>Displays the program's About Box.</summary>
8581
procedure ShowAboutBox;
8682

@@ -149,10 +145,6 @@ interface
149145
/// <param name="Action">TBasicAction [in] Required action.</param>
150146
procedure SetNewsAction(const Action: TBasicAction);
151147

152-
/// <summary>Sets action used to check for program updates.</summary>
153-
/// <param name="Action">TBasicAction [in] Required action.</param>
154-
procedure SetCheckForUpdatesAction(const Action: TBasicAction);
155-
156148
/// <summary>Sets action used to display the program's About Box.</summary>
157149
/// <param name="Action">TBasicAction [in] Required action.</param>
158150
procedure SetAboutBoxAction(const Action: TBasicAction);

Src/UNotifier.pas

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ TNotifier = class(TInterfacedObject, INotifier, ISetActions)
6262
/// <summary>Action that causes news items from CodeSnip news feed to be
6363
/// displayed.</summary>
6464
fNewsAction: TBasicAction;
65-
/// <summary>Action that causes a check for program updates to be
66-
/// performed.</summary>
67-
fCheckForUpdatesAction: TBasicAction;
6865
/// <summary>Action that causes About box to be displayed.</summary>
6966
fAboutBoxAction: TBasicAction;
7067
/// <summary>Action that displays a specified page in the preferences
@@ -135,10 +132,6 @@ TNotifier = class(TInterfacedObject, INotifier, ISetActions)
135132
/// <remarks>Methods of INotifier.</remarks>
136133
procedure ShowNews;
137134

138-
/// <summary>Checks for program updates.</summary>
139-
/// <remarks>Methods of INotifier.</remarks>
140-
procedure CheckForUpdates;
141-
142135
/// <summary>Displays the program's About Box.</summary>
143136
/// <remarks>Methods of INotifier.</remarks>
144137
procedure ShowAboutBox;
@@ -212,11 +205,6 @@ TNotifier = class(TInterfacedObject, INotifier, ISetActions)
212205
/// <remarks>Methods of ISetActions.</remarks>
213206
procedure SetNewsAction(const Action: TBasicAction);
214207

215-
/// <summary>Sets action used to check for program updates.</summary>
216-
/// <param name="Action">TBasicAction [in] Required action.</param>
217-
/// <remarks>Methods of ISetActions.</remarks>
218-
procedure SetCheckForUpdatesAction(const Action: TBasicAction);
219-
220208
/// <summary>Sets action used to display the program's About Box.</summary>
221209
/// <param name="Action">TBasicAction [in] Required action.</param>
222210
/// <remarks>Methods of ISetActions.</remarks>
@@ -260,12 +248,6 @@ procedure TNotifier.ChangeOverviewStyle(const Style: Integer);
260248
fOverviewStyleChangeActions[Style].Execute;
261249
end;
262250

263-
procedure TNotifier.CheckForUpdates;
264-
begin
265-
if Assigned(fCheckForUpdatesAction) then
266-
fCheckForUpdatesAction.Execute;
267-
end;
268-
269251
procedure TNotifier.ConfigCompilers;
270252
begin
271253
if Assigned(fConfigCompilersAction) then
@@ -314,11 +296,6 @@ procedure TNotifier.SetAboutBoxAction(const Action: TBasicAction);
314296
fAboutBoxAction := Action;
315297
end;
316298

317-
procedure TNotifier.SetCheckForUpdatesAction(const Action: TBasicAction);
318-
begin
319-
fCheckForUpdatesAction := Action;
320-
end;
321-
322299
procedure TNotifier.SetConfigCompilersAction(const Action: TBasicAction);
323300
begin
324301
fConfigCompilersAction := Action;

0 commit comments

Comments
 (0)