diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-10-13 15:05:49 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-10-13 15:05:49 +1100 |
| commit | afbf3c31f4d1a605c264f719531f4183ee5a3022 (patch) | |
| tree | 43c75029ff6dfe3e44137f6b3d0de3498f247bf2 /src/database/include/track.hpp | |
| parent | 20d1c280a77eadcea18438453dc37daaf1d85e2d (diff) | |
| download | tangara-fw-afbf3c31f4d1a605c264f719531f4183ee5a3022.tar.gz | |
Use libcppbor for much much nicer db encoding
Diffstat (limited to 'src/database/include/track.hpp')
| -rw-r--r-- | src/database/include/track.hpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/database/include/track.hpp b/src/database/include/track.hpp index 3c7b20fa..44bfbc54 100644 --- a/src/database/include/track.hpp +++ b/src/database/include/track.hpp @@ -117,7 +117,6 @@ class TrackData { const TrackId id_; const std::pmr::string filepath_; const uint64_t tags_hash_; - const uint32_t play_count_; const bool is_tombstoned_; public: @@ -126,18 +125,15 @@ class TrackData { : id_(id), filepath_(path, &memory::kSpiRamResource), tags_hash_(hash), - play_count_(0), is_tombstoned_(false) {} TrackData(TrackId id, const std::pmr::string& path, uint64_t hash, - uint32_t play_count, bool is_tombstoned) : id_(id), filepath_(path, &memory::kSpiRamResource), tags_hash_(hash), - play_count_(play_count), is_tombstoned_(is_tombstoned) {} TrackData(TrackData&& other) = delete; @@ -147,7 +143,6 @@ class TrackData { auto id() const -> TrackId { return id_; } auto filepath() const -> std::pmr::string { return filepath_; } - auto play_count() const -> uint32_t { return play_count_; } auto tags_hash() const -> uint64_t { return tags_hash_; } auto is_tombstoned() const -> bool { return is_tombstoned_; } |
