Skip to content

Commit

Permalink
Delete dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
pavpanchekha committed Nov 27, 2024
1 parent 9a008d9 commit 564b57b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/syntax/syntax.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
*functions*
register-function!
get-fpcore-impl
get-cast-impl
generate-cast-impl
cast-impl?)

(module+ internals
Expand Down Expand Up @@ -582,9 +580,6 @@
#t]
[_ #f])))

(define (get-cast-impl irepr orepr #:impls [impls (all-active-operator-impls)])
(get-fpcore-impl 'cast (repr->prop orepr) (list irepr) #:impls impls))

; Similar to representation generators, conversion generators
; allow Herbie to query plugins for optimized implementations
; of representation conversions, rather than the default
Expand All @@ -596,13 +591,6 @@
(unless (set-member? conversion-generators proc)
(set! conversion-generators (cons proc conversion-generators))))

(define (generate-cast-impl irepr orepr)
(match (get-cast-impl irepr orepr)
[#f
(for/first ([gen (in-list conversion-generators)])
(gen (representation-name irepr) (representation-name orepr)))]
[impl impl]))

;; Expression predicates ;;

(define (impl-exists? op)
Expand Down

0 comments on commit 564b57b

Please sign in to comment.