Remove unused isEnabled property from VocabularyWord

This commit is contained in:
Beingpax 2025-12-27 21:20:26 +05:45
parent 01c12cdd2d
commit 2a9bf12e0e

View File

@ -10,7 +10,7 @@ struct VocabularyWord: Identifiable, Hashable, Codable {
}
private enum CodingKeys: String, CodingKey {
case id, word, dateAdded, isEnabled
case id, word, dateAdded
}
init(from decoder: Decoder) throws {
@ -18,7 +18,6 @@ struct VocabularyWord: Identifiable, Hashable, Codable {
word = try container.decode(String.self, forKey: .word)
_ = try? container.decodeIfPresent(UUID.self, forKey: .id)
_ = try? container.decodeIfPresent(Date.self, forKey: .dateAdded)
_ = try? container.decodeIfPresent(Bool.self, forKey: .isEnabled)
}
func encode(to encoder: Encoder) throws {