Skip to content

Commit 126a135

Browse files
authored
chore(abg): remove unused internal function and property (#1836)
1 parent ca7d576 commit 126a135

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/domain/ActionCoords.kt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,3 @@ public val ActionCoords.subName: String get() = path?.let { "/$path" } ?: ""
2828
* action lives.
2929
*/
3030
public val ActionCoords.fullName: String get() = "$name$subName"
31-
32-
internal fun String.toActionCoords(): ActionCoords {
33-
val (coordinates, version) = this.split('@')
34-
val coordinateParts = coordinates.split('/')
35-
val (owner, name) = coordinateParts
36-
return ActionCoords(
37-
owner = owner,
38-
name = name,
39-
version = version,
40-
path = coordinateParts.drop(2).joinToString("/").takeUnless { it.isBlank() },
41-
)
42-
}

action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/metadata/MetadataReading.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ private fun ActionCoords.actionYmlUrl(gitRef: String) = "https://raw.githubuserc
4343

4444
private fun ActionCoords.actionYamlUrl(gitRef: String) = "https://raw.githubusercontent.com/$owner/$name/$gitRef$subName/action.yaml"
4545

46-
internal val ActionCoords.gitHubUrl: String get() = "https://github.com/$owner/$name"
47-
4846
public fun ActionCoords.fetchMetadata(
4947
metadataRevision: MetadataRevision,
5048
fetchUri: (URI) -> String = ::fetchUri,

0 commit comments

Comments
 (0)