Skip to content

Commit

Permalink
refactor: remove unused code from editorgui.
Browse files Browse the repository at this point in the history
  • Loading branch information
purifetchi committed Jan 1, 2023
1 parent 6c226c3 commit 0f136bf
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions VTTiny/Editor/EditorGUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,22 +164,6 @@ public static bool ImageButton(Texture texture, int x, int y)
return ImGui.ImageButton(new IntPtr(texture.TextureId), new Vector2(x, y));
}

/// <summary>
/// Accepts a file drop onto the last drawn gui component.
/// </summary>
/// <param name="path">The path of the file that was dropped.</param>
/// <returns>Whether the last gui component had a file dropped onto it.</returns>
public static bool AcceptFileDrop(out string path)
{
path = string.Empty;
if (!ImGui.IsItemHovered() || !Raylib.IsFileDropped())
return false;

path = Raylib.GetDroppedFiles()[0];
Raylib.ClearDroppedFiles();
return true;
}

/// <summary>
/// Creates a text label.
/// </summary>
Expand Down

0 comments on commit 0f136bf

Please sign in to comment.