Skip to content

Commit

Permalink
Remove uneeded asFloat (FFI already converts the arguments)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchodias committed Apr 2, 2024
1 parent ca1fce3 commit 6756950
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Alexandrie-Cairo/AeCairoContext.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ AeCairoContext >> lineJoin: aCairoJoinStyle [
{ #category : #'API - path' }
AeCairoContext >> lineTo: aPoint [

^ self lineToX: aPoint x asFloat y: aPoint y asFloat
^ self lineToX: aPoint x y: aPoint y
]

{ #category : #'API - path' }
Expand Down Expand Up @@ -1094,7 +1094,7 @@ AeCairoContext >> miterLimit: aNumber [
{ #category : #'API - path' }
AeCairoContext >> moveTo: aPoint [

self moveToX: aPoint x asFloat y: aPoint y asFloat
self moveToX: aPoint x y: aPoint y
]

{ #category : #'API - path' }
Expand Down Expand Up @@ -1335,7 +1335,7 @@ AeCairoContext >> rectangleX: aX y: aY width: aWidth height: aHeight [
AeCairoContext >> relativeLineTo: deltaPoint [
"Relative-coordinate version of `#lineTo:`"

^ self relativeLineToX: deltaPoint x asFloat y: deltaPoint y asFloat
^ self relativeLineToX: deltaPoint x y: deltaPoint y
]

{ #category : #'API - path' }
Expand All @@ -1356,7 +1356,7 @@ AeCairoContext >> relativeLineToX: dx y: dy [
AeCairoContext >> relativeMoveTo: aPoint [
"Begin a new sub-path. After this call the current point will offset by aPoint."

self relativeMoveToX: aPoint x asFloat y: aPoint y asFloat
self relativeMoveToX: aPoint x y: aPoint y
]

{ #category : #'API - path' }
Expand Down

0 comments on commit 6756950

Please sign in to comment.