Skip to content

Commit

Permalink
Slight code cleanup (unused implements with "default" interface etc)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeroBrine1st committed Dec 4, 2022
1 parent 3581d48 commit 3270a31
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions app/src/main/java/ru/herobrine1st/e621/api/model/FileType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package ru.herobrine1st.e621.api.model
import com.fasterxml.jackson.annotation.JsonValue
import okhttp3.internal.toImmutableMap

@Suppress("unused")
enum class FileType(
@JsonValue val extension: String,
val isSupported: Boolean = true,
Expand All @@ -19,7 +18,6 @@ enum class FileType(
UNDEFINED("", isSupported = false);

val isNotImage = !isImage
val isNotVideo = !isVideo

companion object {
val byExtension = mutableMapOf<String, FileType>().apply {
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/java/ru/herobrine1st/e621/api/model/Post.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
import kotlinx.parcelize.IgnoredOnParcel
import kotlinx.parcelize.Parcelize
import ru.herobrine1st.e621.util.JsonSerializable
import java.time.Instant
import java.time.OffsetDateTime

Expand Down Expand Up @@ -42,7 +41,7 @@ data class Post(
@JsonProperty(required = false)
val hasNotes: Boolean = false,
val duration: Float = 0f
) : Parcelable, JsonSerializable {
) : Parcelable {
@IgnoredOnParcel
@JsonIgnore
val normalizedSample = NormalizedFile(sample)
Expand Down

0 comments on commit 3270a31

Please sign in to comment.