From c9d7498bed0647e35ec5b50656baf7200942b7de Mon Sep 17 00:00:00 2001 From: Menotdan <32620310+Menotdan@users.noreply.github.com> Date: Thu, 12 Oct 2023 13:57:38 -0400 Subject: [PATCH] Remove unneeded changes. --- Source/Editor/Surface/Elements/InputBox.cs | 30 ---------------------- 1 file changed, 30 deletions(-) diff --git a/Source/Editor/Surface/Elements/InputBox.cs b/Source/Editor/Surface/Elements/InputBox.cs index 5a9f33704..2047bcd1a 100644 --- a/Source/Editor/Surface/Elements/InputBox.cs +++ b/Source/Editor/Surface/Elements/InputBox.cs @@ -1652,35 +1652,5 @@ namespace FlaxEditor.Surface.Elements } } } - - /// - /// Get the size of the value editor for this box. - /// - /// The size of the value editor for this box. - public Float2 GetValueEditorSize() - { - if (!HasValue) - return Float2.Zero; - - if (_defaultValueEditor != null) - return _defaultValueEditor.Bounds.Size; - - for (int i = 0; i < DefaultValueEditors.Count; i++) - { - if (DefaultValueEditors[i].CanUse(this, ref _currentType)) - { - var bounds = new Rectangle(X + Width + 8 + Style.Current.FontSmall.MeasureText(Text).X, Y, 90, Height); - _editor = DefaultValueEditors[i]; - - // TODO: Find a better way to evaluate the size than using existing create code to resolve the size for each editor type. - var tempEditor = _editor.Create(this, ref bounds); - Float2 editorSize = tempEditor.Size; - tempEditor.Dispose(); - return editorSize; - } - } - - return Float2.Zero; - } } }