Skip to content

Commit dae7676

Browse files
Tidy up for code review.
1 parent 580fd65 commit dae7676

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/InputActionsEditorWindow.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,6 @@ private InputActionAsset GetEditedAsset()
308308

309309
private void Save(bool isAutoSave)
310310
{
311-
if (isAutoSave)
312-
{
313-
Debug.LogError("Auto-saving input action asset.");
314-
}
315-
316311
var path = AssetDatabase.GUIDToAssetPath(m_AssetGUID);
317312
#if UNITY_INPUT_SYSTEM_PROJECT_WIDE_ACTIONS
318313
var projectWideActions = InputSystem.actions;
@@ -467,9 +462,7 @@ private bool TryUpdateFromAsset()
467462
var asset = AssetDatabase.LoadAssetAtPath<InputActionAsset>(assetPath);
468463
workingCopy = InputActionAssetManager.CreateWorkingCopy(asset);
469464
m_AssetJson = InputActionsEditorWindowUtils.ToJsonWithoutName(asset);
470-
471465
m_State = new InputActionsEditorState(m_State, new SerializedObject(workingCopy));
472-
//TODO THIS CAUSES THE ERROR
473466
m_IsDirty = false;
474467
}
475468
catch (Exception e)

Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/Views/ControlSchemesView.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ public override void RedrawUI(InputControlScheme viewState)
118118

119119
public override void DestroyView()
120120
{
121-
Debug.LogError("Destroying view! ");
122-
123121
m_ModalWindow.RemoveFromHierarchy();
124122
}
125123

@@ -147,7 +145,6 @@ private void CloseView()
147145
// the changes retained. However, if a different ControlScheme is selected or the Asset
148146
// Editor window is closed, then the changes are lost.
149147

150-
Debug.LogError("Closing the control scheme view here");
151148
m_NewName = string.Empty;
152149
OnClosing?.Invoke(this);
153150
}

0 commit comments

Comments
 (0)