Skip to content

Commit 9833c49

Browse files
Merge pull request #71 from square/zachklipp/cleanup-treesnapshot
Remove unused TreeSnapshot extension functions.
2 parents c8adf0e + 2087add commit 9833c49

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

workflow-runtime/src/main/java/com/squareup/workflow/TreeSnapshot.kt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,3 @@ class TreeSnapshot internal constructor(
116116
}
117117
}
118118
}
119-
120-
internal fun TreeSnapshot.asSnapshot(): Snapshot = Snapshot.of(::toByteString)
121-
122-
/**
123-
* Parses a full [TreeSnapshot] from [snapshot], which must have been created by [asSnapshot].
124-
*/
125-
internal fun TreeSnapshot.Companion.parseFrom(snapshot: Snapshot?): TreeSnapshot =
126-
snapshot?.let {
127-
parse(
128-
Buffer().write(it.bytes)
129-
.readByteString()
130-
)
131-
} ?: NONE

0 commit comments

Comments
 (0)