summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-01-29 21:00:26 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-01-29 21:00:26 +0100
commit745f8e112fcf5d61e0fc377bdbc2539dd6b16ef9 (patch)
tree63a2f13488c63482fdb0619778f6dd76ae525381 /modules/gdscript/tests/scripts
parentfa48a51183567934984b381ad8ec281cb24d66ba (diff)
downloadredot-engine-745f8e112fcf5d61e0fc377bdbc2539dd6b16ef9.tar.gz
Revert "Add UID support to GDScript files"
This reverts commit c7f68a27ec4b825302998eeb5a400f869cd21cf7. We still think GDScript files need UIDs to allow safe refactoring, but we're still debating what form those should take exactly. So far there seems to be agreement that it shouldn't be done via an annotation as implemented here, so we're reverting this one for now, to revisit the feature in a future PR.
Diffstat (limited to 'modules/gdscript/tests/scripts')
-rw-r--r--modules/gdscript/tests/scripts/parser/errors/uid_duplicate.gd5
-rw-r--r--modules/gdscript/tests/scripts/parser/errors/uid_duplicate.out2
-rw-r--r--modules/gdscript/tests/scripts/parser/errors/uid_invalid.gd4
-rw-r--r--modules/gdscript/tests/scripts/parser/errors/uid_invalid.out2
-rw-r--r--modules/gdscript/tests/scripts/parser/errors/uid_too_late.gd5
-rw-r--r--modules/gdscript/tests/scripts/parser/errors/uid_too_late.out2
-rw-r--r--modules/gdscript/tests/scripts/parser/features/uid.gd5
-rw-r--r--modules/gdscript/tests/scripts/parser/features/uid.out1
8 files changed, 0 insertions, 26 deletions
diff --git a/modules/gdscript/tests/scripts/parser/errors/uid_duplicate.gd b/modules/gdscript/tests/scripts/parser/errors/uid_duplicate.gd
deleted file mode 100644
index 4ded8e65db..0000000000
--- a/modules/gdscript/tests/scripts/parser/errors/uid_duplicate.gd
+++ /dev/null
@@ -1,5 +0,0 @@
-@uid("uid://c4ckv3ryprcn4")
-@uid("uid://c4ckv3ryprcn4")
-
-func test():
- pass
diff --git a/modules/gdscript/tests/scripts/parser/errors/uid_duplicate.out b/modules/gdscript/tests/scripts/parser/errors/uid_duplicate.out
deleted file mode 100644
index be1061401a..0000000000
--- a/modules/gdscript/tests/scripts/parser/errors/uid_duplicate.out
+++ /dev/null
@@ -1,2 +0,0 @@
-GDTEST_PARSER_ERROR
-"@uid" annotation can only be used once.
diff --git a/modules/gdscript/tests/scripts/parser/errors/uid_invalid.gd b/modules/gdscript/tests/scripts/parser/errors/uid_invalid.gd
deleted file mode 100644
index 114d5b7e98..0000000000
--- a/modules/gdscript/tests/scripts/parser/errors/uid_invalid.gd
+++ /dev/null
@@ -1,4 +0,0 @@
-@uid("not a valid uid")
-
-func test():
- pass
diff --git a/modules/gdscript/tests/scripts/parser/errors/uid_invalid.out b/modules/gdscript/tests/scripts/parser/errors/uid_invalid.out
deleted file mode 100644
index 83f9f63cbf..0000000000
--- a/modules/gdscript/tests/scripts/parser/errors/uid_invalid.out
+++ /dev/null
@@ -1,2 +0,0 @@
-GDTEST_PARSER_ERROR
-The annotated UID is invalid.
diff --git a/modules/gdscript/tests/scripts/parser/errors/uid_too_late.gd b/modules/gdscript/tests/scripts/parser/errors/uid_too_late.gd
deleted file mode 100644
index 2b332447b7..0000000000
--- a/modules/gdscript/tests/scripts/parser/errors/uid_too_late.gd
+++ /dev/null
@@ -1,5 +0,0 @@
-extends Object
-@uid("uid://c4ckv3ryprcn4")
-
-func test():
- pass
diff --git a/modules/gdscript/tests/scripts/parser/errors/uid_too_late.out b/modules/gdscript/tests/scripts/parser/errors/uid_too_late.out
deleted file mode 100644
index 328459923f..0000000000
--- a/modules/gdscript/tests/scripts/parser/errors/uid_too_late.out
+++ /dev/null
@@ -1,2 +0,0 @@
-GDTEST_PARSER_ERROR
-Annotation "@uid" must be at the top of the script, before "extends" and "class_name".
diff --git a/modules/gdscript/tests/scripts/parser/features/uid.gd b/modules/gdscript/tests/scripts/parser/features/uid.gd
deleted file mode 100644
index 4070500608..0000000000
--- a/modules/gdscript/tests/scripts/parser/features/uid.gd
+++ /dev/null
@@ -1,5 +0,0 @@
-@uid("uid://c4ckv3ryprcn4")
-extends Object
-
-func test():
- pass
diff --git a/modules/gdscript/tests/scripts/parser/features/uid.out b/modules/gdscript/tests/scripts/parser/features/uid.out
deleted file mode 100644
index d73c5eb7cd..0000000000
--- a/modules/gdscript/tests/scripts/parser/features/uid.out
+++ /dev/null
@@ -1 +0,0 @@
-GDTEST_OK