summaryrefslogtreecommitdiff
path: root/bos-sugar.sh
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2023-07-22 16:05:29 +0100
committerdakkar <dakkar@thenautilus.net>2023-07-22 16:05:29 +0100
commit4b1b923e1426904b556349c8fe4b1b0453a7223f (patch)
tree85f1f7b70ad66b5199501d148a9fc7d27b6c099e /bos-sugar.sh
parentsingle meta class (diff)
downloadbash-object-system-4b1b923e1426904b556349c8fe4b1b0453a7223f.tar.gz
bash-object-system-4b1b923e1426904b556349c8fe4b1b0453a7223f.tar.bz2
bash-object-system-4b1b923e1426904b556349c8fe4b1b0453a7223f.zip
move constructor to global base class
Diffstat (limited to 'bos-sugar.sh')
-rw-r--r--bos-sugar.sh13
1 files changed, 0 insertions, 13 deletions
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
}