Skip to content

Commit

Permalink
Removed unused preloads
Browse files Browse the repository at this point in the history
These were either erroneously added by or became unneeded when
TemplateEditor was added in 81b6456. The StatementBlock preload of
ParameterOutput was causing a circular dependency.
  • Loading branch information
dbnicholson committed Sep 24, 2024
1 parent a6b9dd7 commit b36f3a1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions addons/block_code/ui/blocks/control_block/control_block.gd
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ class_name ControlBlock
extends Block

const Constants = preload("res://addons/block_code/ui/constants.gd")
const DragDropArea = preload("res://addons/block_code/ui/blocks/utilities/drag_drop_area/drag_drop_area.gd")
const DragDropAreaScene = preload("res://addons/block_code/ui/blocks/utilities/drag_drop_area/drag_drop_area.tscn")
const Gutter = preload("res://addons/block_code/ui/blocks/utilities/background/gutter.gd")


func _ready():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
class_name StatementBlock
extends Block

const ParameterInput = preload("res://addons/block_code/ui/blocks/utilities/parameter_input/parameter_input.gd")
const ParameterInputScene = preload("res://addons/block_code/ui/blocks/utilities/parameter_input/parameter_input.tscn")
const ParameterOutput = preload("res://addons/block_code/ui/blocks/utilities/parameter_output/parameter_output.gd")
const ParameterOutputScene = preload("res://addons/block_code/ui/blocks/utilities/parameter_output/parameter_output.tscn")
const Types = preload("res://addons/block_code/types/types.gd")

@onready var _background := %Background
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ extends MarginContainer

const Types = preload("res://addons/block_code/types/types.gd")
const ParameterBlock = preload("res://addons/block_code/ui/blocks/parameter_block/parameter_block.gd")
const ParameterBlockScene = preload("res://addons/block_code/ui/blocks/parameter_block/parameter_block.tscn")

var block: Block
var parameter_name: String
Expand Down

0 comments on commit b36f3a1

Please sign in to comment.