Skip to content

Commit 7e7e421

Browse files
committed
remove redundant code
1 parent c255097 commit 7e7e421

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,6 @@ public void SetExpectedControlLayout(string expectedControlLayout)
6767
m_PickerDropdown?.SetExpectedControlLayout(m_ExpectedControlLayout);
6868
}
6969

70-
public void SetExpectedControlLayoutFromAttribute()
71-
{
72-
var field = pathProperty.GetField();
73-
if (field == null)
74-
return;
75-
76-
var attribute = field.GetCustomAttribute<InputControlAttribute>();
77-
if (attribute != null)
78-
SetExpectedControlLayout(attribute.layout);
79-
}
80-
8170
public void OnGUI()
8271
{
8372
EditorGUILayout.BeginHorizontal();
@@ -177,13 +166,6 @@ private void ShowDropdown(Rect rect, SerializedProperty serializedProperty, Acti
177166
});
178167
}
179168

180-
m_PickerDropdown.SetPickedCallback(path =>
181-
{
182-
serializedProperty.stringValue = path;
183-
m_PickerState.manualPathEditMode = false;
184-
modifiedCallback();
185-
});
186-
187169
m_PickerDropdown.SetControlPathsToMatch(m_ControlPathsToMatch);
188170
m_PickerDropdown.SetExpectedControlLayout(m_ExpectedControlLayout);
189171

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,6 @@ public void SetExpectedControlLayout(string expectedControlLayout)
5858
Reload();
5959
}
6060

61-
public void SetPickedCallback(Action<string> action)
62-
{
63-
m_OnPickCallback = action;
64-
}
65-
6661
protected override void OnDestroy()
6762
{
6863
#if UNITY_INPUT_SYSTEM_PROJECT_WIDE_ACTIONS

0 commit comments

Comments
 (0)