Skip to content

Commit

Permalink
remove unnecessary changes from ActionBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
RenderMichael committed Dec 8, 2024
1 parent ec365d2 commit e09ef7f
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions dotnet/src/webdriver/Interactions/ActionBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class ActionBuilder
/// <returns>A self reference.</returns>
public ActionBuilder AddAction(Interaction actionToAdd)
{
this.ProcessTick(actionToAdd);
this.AddActions(actionToAdd);
return this;
}

Expand Down Expand Up @@ -91,20 +91,6 @@ public override string ToString()
return builder.ToString();
}

private void ProcessTick(Interaction interaction)
{
ActionSequence sequence = this.GetOrAddSequence(interaction.SourceDevice);
sequence.AddAction(interaction);

foreach (KeyValuePair<InputDevice, ActionSequence> pair in this.sequences)
{
if (pair.Key != interaction.SourceDevice)
{
pair.Value.AddAction(new PauseInteraction(pair.Key, TimeSpan.Zero));
}
}
}

private void ProcessTick(params Interaction[] interactionsToAdd)
{
List<InputDevice> usedDevices = new List<InputDevice>();
Expand Down

0 comments on commit e09ef7f

Please sign in to comment.