@@ -62,14 +62,8 @@ 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;
70- // / <summary>Action that displays a specified page in the preferences
71- // / dialogue box.</summary>
72- fShowPrefsPageAction: TBasicAction;
7367
7468 public
7569
@@ -135,21 +129,10 @@ TNotifier = class(TInterfacedObject, INotifier, ISetActions)
135129 // / <remarks>Methods of INotifier.</remarks>
136130 procedure ShowNews ;
137131
138- // / <summary>Checks for program updates.</summary>
139- // / <remarks>Methods of INotifier.</remarks>
140- procedure CheckForUpdates ;
141-
142132 // / <summary>Displays the program's About Box.</summary>
143133 // / <remarks>Methods of INotifier.</remarks>
144134 procedure ShowAboutBox ;
145135
146- // / <summary>Displays the Preferences dialogue box containing the specified
147- // / page.</summary>
148- // / <param name="ClsName">string [in] Class name of the frame that
149- // / implements the required preferences page.</param>
150- // / <remarks>Method of INotifier.</remarks>
151- procedure ShowPrefsPage (const ClsName: string);
152-
153136 // / <summary>Sets action used to request a database update.</summary>
154137 // / <param name="Action">TBasicAction [in] Required action.</param>
155138 // / <remarks>Methods of ISetActions.</remarks>
@@ -212,21 +195,11 @@ TNotifier = class(TInterfacedObject, INotifier, ISetActions)
212195 // / <remarks>Methods of ISetActions.</remarks>
213196 procedure SetNewsAction (const Action: TBasicAction);
214197
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-
220198 // / <summary>Sets action used to display the program's About Box.</summary>
221199 // / <param name="Action">TBasicAction [in] Required action.</param>
222200 // / <remarks>Methods of ISetActions.</remarks>
223201 procedure SetAboutBoxAction (const Action: TBasicAction);
224202
225- // / <summary>Sets action used to display a given page of the Preferences
226- // / dialogue box.</summary>
227- // / <param name="Action">TBasicAction [in] Required action.</param>
228- // / <remarks>Method of ISetActions.</remarks>
229- procedure SetShowPrefsPageAction (const Action: TBasicAction);
230203 end ;
231204
232205
@@ -237,8 +210,12 @@ implementation
237210 // Delphi
238211 SysUtils, StdActns,
239212 // Project
240- Compilers.UGlobals, UCategoryAction, UDetailTabAction, UEditSnippetAction,
241- UShowPrefsPageAction, USnippetAction, UViewItemAction;
213+ Compilers.UGlobals,
214+ UCategoryAction,
215+ UDetailTabAction,
216+ UEditSnippetAction,
217+ USnippetAction,
218+ UViewItemAction;
242219
243220
244221{ TNotifier }
@@ -260,12 +237,6 @@ procedure TNotifier.ChangeOverviewStyle(const Style: Integer);
260237 fOverviewStyleChangeActions[Style].Execute;
261238end ;
262239
263- procedure TNotifier.CheckForUpdates ;
264- begin
265- if Assigned(fCheckForUpdatesAction) then
266- fCheckForUpdatesAction.Execute;
267- end ;
268-
269240procedure TNotifier.ConfigCompilers ;
270241begin
271242 if Assigned(fConfigCompilersAction) then
@@ -314,11 +285,6 @@ procedure TNotifier.SetAboutBoxAction(const Action: TBasicAction);
314285 fAboutBoxAction := Action;
315286end ;
316287
317- procedure TNotifier.SetCheckForUpdatesAction (const Action: TBasicAction);
318- begin
319- fCheckForUpdatesAction := Action;
320- end ;
321-
322288procedure TNotifier.SetConfigCompilersAction (const Action: TBasicAction);
323289begin
324290 fConfigCompilersAction := Action;
@@ -379,13 +345,6 @@ procedure TNotifier.SetOverviewStyleChangeActions(
379345 fOverviewStyleChangeActions[Idx] := Actions[Idx];
380346end ;
381347
382- procedure TNotifier.SetShowPrefsPageAction (const Action: TBasicAction);
383- begin
384- Assert(Action is TShowPrefsPageAction, ClassName
385- + ' .SetShowPreferencesAction: Action is not TShowPrefsPageAction' );
386- fShowPrefsPageAction := Action;
387- end ;
388-
389348procedure TNotifier.SetShowViewItemAction (const Action: TBasicAction);
390349begin
391350 fShowViewItemAction := Action;
@@ -409,15 +368,6 @@ procedure TNotifier.ShowNews;
409368 fNewsAction.Execute;
410369end ;
411370
412- procedure TNotifier.ShowPrefsPage (const ClsName: string);
413- begin
414- if Assigned(fShowPrefsPageAction) then
415- begin
416- (fShowPrefsPageAction as TShowPrefsPageAction).FrameClassName := ClsName;
417- fShowPrefsPageAction.Execute;
418- end ;
419- end ;
420-
421371procedure TNotifier.ShowViewItem (ViewItem: IView; const NewTab: Boolean);
422372begin
423373 if Assigned(fShowViewItemAction) then
0 commit comments