mirror of
https://github.com/jlengrand/OpenGraphKt.git
synced 2026-03-10 08:31:23 +00:00
Removing unused convenience method
This commit is contained in:
@@ -62,15 +62,6 @@ data class OpenGraphData(
|
||||
fun isValid(): Boolean {
|
||||
return title != null && type != null && images.isNotEmpty() && url != null
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first image URL, or null if no images are present.
|
||||
*
|
||||
* @return The URL of the first image, or null
|
||||
*/
|
||||
fun getFirstImageUrl(): String? {
|
||||
return images.firstOrNull()?.url
|
||||
}
|
||||
}
|
||||
|
||||
data class OpenGraphImage(
|
||||
|
||||
Reference in New Issue
Block a user