Skip to content

Commit

Permalink
Remove insignificant inline argument
Browse files Browse the repository at this point in the history
Because "inlining works best for functions with parameters
of functional types".
  • Loading branch information
markusfisch committed May 29, 2020
1 parent f34194c commit f63b78c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fun frameToView(
viewRect.top
)

inline fun isPortrait(orientation: Int) = orientation == 90 || orientation == 270
fun isPortrait(orientation: Int) = orientation == 90 || orientation == 270

data class Mapping(
val frameWidth: Int,
Expand Down

0 comments on commit f63b78c

Please sign in to comment.