Skip to content

Commit 5d30fc3

Browse files
committed
Remove the Cancel from API; to be handled in a future PR.
Make Cancel private again.
1 parent b45b886 commit 5d30fc3

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

Rubberduck.API/VBA/Parser.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ public interface IParser
3434
Declarations AllDeclarations { get; }
3535
[DispId(4)]
3636
Declarations UserDeclarations { get; }
37-
[DispId(5)]
38-
void CancelParse();
3937
}
4038

4139
[
@@ -165,15 +163,7 @@ public void BeginParse()
165163
// non-blocking call
166164
_dispatcher.Invoke(() => _state.OnParseRequested(this));
167165
}
168-
169-
/// <summary>
170-
/// Cancels the parse, if any, in progress
171-
/// </summary>
172-
public void CancelParse()
173-
{
174-
_parser.Cancel();
175-
}
176-
166+
177167
public delegate void OnStateChangedDelegate(ParserState ParserState);
178168
public event OnStateChangedDelegate OnStateChanged;
179169

Rubberduck.Parsing/VBA/ParseCoordinator.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,7 @@ protected virtual void BeginParse(object sender)
187187
Task.Run(() => ParseAll(sender));
188188
}
189189

190-
public void Cancel()
191-
{
192-
Cancel(true);
193-
}
194-
195-
private void Cancel(bool createNewTokenSource)
190+
private void Cancel(bool createNewTokenSource = true)
196191
{
197192
lock (CancellationSyncObject)
198193
{

0 commit comments

Comments
 (0)