From 4b1b923e1426904b556349c8fe4b1b0453a7223f Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 22 Jul 2023 16:05:29 +0100 Subject: move constructor to global base class --- bos-sugar.sh | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'bos-sugar.sh') diff --git a/bos-sugar.sh b/bos-sugar.sh index f7e790a..8f3a810 100644 --- a/bos-sugar.sh +++ b/bos-sugar.sh @@ -57,19 +57,6 @@ function bos-sugar/class-open() { local fq_class; bos-namespaces/current-namespace-into fq_class bos-sugar/set-metaclass-for "$fq_class" - # this will get renamed into the class - function new-into() { - local class _; bos-object/unpack-self-into class _ "$self" - local -n new_into_result="$1"; shift - local metaclass_ref; bos-namespaces/store-scalar-for-into metaclass_ref meta "$class" - local -n metaclass_object="$metaclass_ref" - - local new_object - $metaclass_object create-object-into new_object "$class" "$@" - - new_into_result="$new_object" - } - return 0 } -- cgit v1.2.3