Skip to content

Commit

Permalink
refactor(mpris2): clean up useless struct boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
onegentig committed Jul 20, 2024
1 parent 4ac4423 commit 7adbd5b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/mpris2/plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ struct MPRIS2Metadata
int32_t disc = -1;
AudArtPtr image;

MPRIS2Metadata() = default;

bool operator==(const MPRIS2Metadata & other) const
{
return title == other.title && artist == other.artist &&
Expand All @@ -99,12 +97,6 @@ struct MPRIS2Metadata
{
return !(*this == other);
}

MPRIS2Metadata(MPRIS2Metadata && other) = default;
MPRIS2Metadata & operator=(MPRIS2Metadata && other) = default;
MPRIS2Metadata(const MPRIS2Metadata &) = delete;
MPRIS2Metadata & operator=(const MPRIS2Metadata &) = delete;
~MPRIS2Metadata() = default;
};

static MPRIS2Metadata last_meta;
Expand Down

0 comments on commit 7adbd5b

Please sign in to comment.