diff options
author | Thomas White <taw@physics.org> | 2023-06-15 22:42:13 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2023-06-15 22:42:13 +0200 |
commit | fd094d2fdcbc99493c7ad9420f4b38ec1cd4b825 (patch) | |
tree | 26032d08e5b97d4225841b08257fc15bf4240874 /guile/starlet/fixture.scm | |
parent | cc7f7c6a1557816f4b138a80132fbbc62b933a2e (diff) |
Un-GOOPS some procedures
These don't need to be generic any more, now that we only have one type
of attribute.
Diffstat (limited to 'guile/starlet/fixture.scm')
-rw-r--r-- | guile/starlet/fixture.scm | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/guile/starlet/fixture.scm b/guile/starlet/fixture.scm index 2711f9e..dfb5381 100644 --- a/guile/starlet/fixture.scm +++ b/guile/starlet/fixture.scm @@ -168,21 +168,14 @@ (is-a? f <fixture>)) -(define-method (find-attr (fix <fixture>) (attr-name <starlet-attribute>)) +(define (find-attr fix attr-name) (find (lambda (a) (eq? (get-attr-name a) attr-name)) (get-fixture-attrs fix))) -(define-method (find-attr fix attr-name) - (raise-exception - (make-exception - (make-exception-with-message "Invalid parameters") - (make-exception-with-irritants fix)))) - - -(define-method (get-attr-home-val (fix <fixture>) (attr <starlet-attribute>)) +(define (get-attr-home-val fix attr) (let ((attr-obj (find-attr fix attr))) (if attr-obj (attr-home-value attr-obj) |