Skip to content

Commit

Permalink
Remove the unused defaultStyle vars
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbanes committed Oct 4, 2024
1 parent 765abe3 commit 2e1b0d8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions haze/src/commonMain/kotlin/dev/chrisbanes/haze/Haze.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ class HazeState {
*/
var contentLayer: GraphicsLayer? = null
internal set

internal var defaultStyle: HazeStyle by mutableStateOf(HazeStyle.Unspecified)
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ internal class HazeChildNode(
}

private fun updateEffect() {
effect.defaultStyle = state.defaultStyle
// Invalidate if any of the effects triggered an invalidation, or we now have zero
// effects but were previously showing some
block(effect)
Expand Down Expand Up @@ -211,8 +210,6 @@ internal class ReusableHazeEffect : HazeChildScope {

var positionOnScreen: Offset by mutableStateOf(Offset.Unspecified)

var defaultStyle: HazeStyle by mutableStateOf(HazeStyle.Unspecified)

val isValid: Boolean
get() = size.isSpecified && layerSize.isSpecified

Expand Down

0 comments on commit 2e1b0d8

Please sign in to comment.