Skip to content

Commit 324fb79

Browse files
committed
Fix warning in CSS mode
1 parent 61e5326 commit 324fb79

2 files changed

Lines changed: 3 additions & 13 deletions

File tree

modes/css/mode.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
name="CSS"
44
description="CSS support for Text Forge (Web Modekit)"
55
author="Text Forge Team"
6-
version="1.1.0"
6+
version="1.1.1"
77
extensions=["css", "scss"]

modes/css/mode.gd

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ func _auto_indent(text: String) -> String:
4545
var lines := text.split("\n", false)
4646
var formatted := []
4747
var indent_level := 0
48-
var indent_size := Global.get_editor().indent_size
49-
var indent_str := " ".repeat(indent_size) if Global.get_editor().indent_use_spaces else "\t"
48+
var _indent_size := Global.get_editor().indent_size
49+
var indent_str := " ".repeat(_indent_size) if Global.get_editor().indent_use_spaces else "\t"
5050

5151
for line in lines:
5252
var stripped := line.strip_edges()
@@ -67,16 +67,6 @@ func _update_code_completion_options(text: String) -> void:
6767
Global.get_editor().add_code_completion_option(CodeEdit.KIND_CLASS, keyword, keyword, color)
6868

6969

70-
# TODO
71-
func _generate_outline(text: String) -> Array:
72-
return Array()
73-
74-
75-
# TODO
76-
func _lint_file(text: String) -> Array[Dictionary]:
77-
return Array([], TYPE_DICTIONARY, "", null)
78-
79-
8070
func _initialize_highlighter() -> void:
8171
syntax_highlighter = CodeHighlighter.new()
8272
syntax_highlighter.number_color = U.get_syntax_color(U.SyntaxColors.NUMBER)

0 commit comments

Comments
 (0)