summaryrefslogtreecommitdiff
path: root/core/node_path.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-02-21 16:48:29 +0100
committerGitHub <noreply@github.com>2020-02-21 16:48:29 +0100
commita77c862b18c283e2795a7bdf665b2d9cc9c3b4d2 (patch)
tree29701b02651ef860c1c610ec9145c799767d93b6 /core/node_path.h
parent0447d6fc8edfd636fa6c859d32e76ec8a760f42e (diff)
parent3c0059650da3f1feb3c95364d571fe706826dec6 (diff)
Merge pull request #36400 from reduz/variant-string-name
Added StringName as a variant type.
Diffstat (limited to 'core/node_path.h')
-rw-r--r--core/node_path.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/core/node_path.h b/core/node_path.h
index 5439658910..05b6d844ff 100644
--- a/core/node_path.h
+++ b/core/node_path.h
@@ -54,15 +54,6 @@ class NodePath {
void _update_hash_cache() const;
public:
- _FORCE_INLINE_ StringName get_sname() const {
-
- if (data && data->path.size() == 1 && data->subpath.empty()) {
- return data->path[0];
- } else {
- return operator String();
- }
- }
-
bool is_absolute() const;
int get_name_count() const;
StringName get_name(int p_idx) const;