Skip to content

Commit c255097

Browse files
committed
remove unused code
1 parent f35d9f8 commit c255097

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

Packages/com.unity.inputsystem/InputSystem/Editor/ControlPicker/InputControlPicker.cs

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,8 @@
55

66
namespace UnityEngine.InputSystem.Editor
77
{
8-
/// <summary>
9-
/// A popup that allows picking input controls graphically.
10-
/// </summary>
11-
public sealed class InputControlPicker : IDisposable
8+
public sealed class InputControlPicker
129
{
13-
public InputControlPicker(Mode mode, Action<string> onPick, InputControlPickerState state)
14-
{
15-
m_State = state ?? new InputControlPickerState();
16-
m_Dropdown = new InputControlPickerDropdown(state, onPick, mode: mode);
17-
}
18-
19-
public void Show(Rect rect)
20-
{
21-
m_Dropdown.Show(rect);
22-
}
23-
24-
public void Dispose()
25-
{
26-
m_Dropdown?.Dispose();
27-
}
28-
29-
public InputControlPickerState state => m_State;
30-
31-
private readonly InputControlPickerDropdown m_Dropdown;
32-
private readonly InputControlPickerState m_State;
33-
3410
public enum Mode
3511
{
3612
PickControl,

0 commit comments

Comments
 (0)