Skip to content

Commit cdbaf29

Browse files
author
delphidabbler
committed
Removed methods that supported Donate action from Notifier
These methods were called by the external object to display the dialogue and by the main form to set the required action.
1 parent f15932f commit cdbaf29

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

Src/IntfNotifier.pas

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ interface
7171
/// <remarks>Snippet must be user defined.</remarks>
7272
procedure EditSnippet(const SnippetName: WideString);
7373

74-
/// <summary>Displays Donate dialogue box.</summary>
75-
procedure Donate;
76-
7774
/// <summary>Opens Snippets Editor ready to create a new snippet.</summary>
7875
procedure NewSnippet;
7976

@@ -138,10 +135,6 @@ interface
138135
/// <param name="Action">TBasicAction [in] Required action.</param>
139136
procedure SetEditSnippetAction(const Action: TBasicAction);
140137

141-
/// <summary>Sets action used to display Donate dialogue box.</summary>
142-
/// <param name="Action">TBasicAction [in] Required action.</param>
143-
procedure SetDonateAction(const Action: TBasicAction);
144-
145138
/// <summary>Sets action used to display a category.</summary>
146139
/// <param name="Action">TBasicAction [in] Required action.</param>
147140
procedure SetDisplayCategoryAction(const Action: TBasicAction);

Src/UNotifier.pas

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ TNotifier = class(TInterfacedObject, INotifier, ISetActions)
5454
/// <summary>Action that causes a user defined snippet to be
5555
/// edited.</summary>
5656
fEditSnippetAction: TBasicAction;
57-
/// <summary>Action that displays donate dialogue box.</summary>
58-
fDonateAction: TBasicAction;
5957
/// <summary>Action that causes a category to be displayed.</summary>
6058
fDisplayCategoryAction: TBasicAction;
6159
/// <summary>Action that causes the Snippets Editor to be opened ready to
@@ -129,10 +127,6 @@ TNotifier = class(TInterfacedObject, INotifier, ISetActions)
129127
/// </remarks>
130128
procedure EditSnippet(const SnippetName: WideString);
131129

132-
/// <summary>Displays Donate dialogue box.</summary>
133-
/// <remarks>Methods of INotifier.</remarks>
134-
procedure Donate;
135-
136130
/// <summary>Opens Snippets Editor ready to create a new snippet.</summary>
137131
/// <remarks>Methods of INotifier.</remarks>
138132
procedure NewSnippet;
@@ -201,11 +195,6 @@ TNotifier = class(TInterfacedObject, INotifier, ISetActions)
201195
/// <remarks>Methods of ISetActions.</remarks>
202196
procedure SetEditSnippetAction(const Action: TBasicAction);
203197

204-
/// <summary>Sets action used to display Donate dialogue box.</summary>
205-
/// <param name="Action">TBasicAction [in] Required action.</param>
206-
/// <remarks>Methods of ISetActions.</remarks>
207-
procedure SetDonateAction(const Action: TBasicAction);
208-
209198
/// <summary>Sets action used to display a category.</summary>
210199
/// <param name="Action">TBasicAction [in] Required action.</param>
211200
/// <remarks>Methods of ISetActions.</remarks>
@@ -305,12 +294,6 @@ procedure TNotifier.DisplaySnippet(const SnippetName: WideString;
305294
end;
306295
end;
307296

308-
procedure TNotifier.Donate;
309-
begin
310-
if Assigned(fDonateAction) then
311-
fDonateAction.Execute;
312-
end;
313-
314297
procedure TNotifier.EditSnippet(const SnippetName: WideString);
315298
begin
316299
if Assigned(fEditSnippetAction) then
@@ -369,11 +352,6 @@ procedure TNotifier.SetDisplaySnippetAction(
369352
(fDisplaySnippetAction as ISetNotifier).SetNotifier(Self);
370353
end;
371354

372-
procedure TNotifier.SetDonateAction(const Action: TBasicAction);
373-
begin
374-
fDonateAction := Action;
375-
end;
376-
377355
procedure TNotifier.SetEditSnippetAction(const Action: TBasicAction);
378356
begin
379357
Assert(Action is TEditSnippetAction,

0 commit comments

Comments
 (0)