Skip to content

Commit e09ef7f

Browse files
committed
remove unnecessary changes from ActionBuilder
1 parent ec365d2 commit e09ef7f

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

dotnet/src/webdriver/Interactions/ActionBuilder.cs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class ActionBuilder
4141
/// <returns>A self reference.</returns>
4242
public ActionBuilder AddAction(Interaction actionToAdd)
4343
{
44-
this.ProcessTick(actionToAdd);
44+
this.AddActions(actionToAdd);
4545
return this;
4646
}
4747

@@ -91,20 +91,6 @@ public override string ToString()
9191
return builder.ToString();
9292
}
9393

94-
private void ProcessTick(Interaction interaction)
95-
{
96-
ActionSequence sequence = this.GetOrAddSequence(interaction.SourceDevice);
97-
sequence.AddAction(interaction);
98-
99-
foreach (KeyValuePair<InputDevice, ActionSequence> pair in this.sequences)
100-
{
101-
if (pair.Key != interaction.SourceDevice)
102-
{
103-
pair.Value.AddAction(new PauseInteraction(pair.Key, TimeSpan.Zero));
104-
}
105-
}
106-
}
107-
10894
private void ProcessTick(params Interaction[] interactionsToAdd)
10995
{
11096
List<InputDevice> usedDevices = new List<InputDevice>();

0 commit comments

Comments
 (0)