refactor: zap display_center stub implementations
This commit is contained in:
@@ -176,10 +176,6 @@ impl ListItem for Album {
|
||||
format!("{}", self)
|
||||
}
|
||||
|
||||
fn display_center(&self, _library: Arc<Library>) -> String {
|
||||
"".to_string()
|
||||
}
|
||||
|
||||
fn display_right(&self, library: Arc<Library>) -> String {
|
||||
let saved = if library.is_saved_album(self) {
|
||||
if library.cfg.values().use_nerdfont.unwrap_or(false) {
|
||||
|
||||
@@ -148,10 +148,6 @@ impl ListItem for Artist {
|
||||
format!("{}", self)
|
||||
}
|
||||
|
||||
fn display_center(&self, _library: Arc<Library>) -> String {
|
||||
"".to_string()
|
||||
}
|
||||
|
||||
fn display_right(&self, library: Arc<Library>) -> String {
|
||||
let followed = if library.is_followed_artist(self) {
|
||||
if library.cfg.values().use_nerdfont.unwrap_or(false) {
|
||||
|
||||
@@ -71,10 +71,6 @@ impl ListItem for Episode {
|
||||
self.name.clone()
|
||||
}
|
||||
|
||||
fn display_center(&self, _library: Arc<Library>) -> String {
|
||||
"".to_string()
|
||||
}
|
||||
|
||||
fn display_right(&self, _library: Arc<Library>) -> String {
|
||||
format!("{} [{}]", self.duration_str(), self.release_date)
|
||||
}
|
||||
|
||||
@@ -128,10 +128,6 @@ impl ListItem for Playlist {
|
||||
self.name.clone()
|
||||
}
|
||||
|
||||
fn display_center(&self, _library: Arc<Library>) -> String {
|
||||
"".to_string()
|
||||
}
|
||||
|
||||
fn display_right(&self, library: Arc<Library>) -> String {
|
||||
let saved = if library.is_saved_playlist(self) {
|
||||
if library.cfg.values().use_nerdfont.unwrap_or(false) {
|
||||
|
||||
@@ -92,10 +92,6 @@ impl ListItem for Show {
|
||||
format!("{}", self)
|
||||
}
|
||||
|
||||
fn display_center(&self, _library: Arc<Library>) -> String {
|
||||
"".to_string()
|
||||
}
|
||||
|
||||
fn display_right(&self, library: Arc<Library>) -> String {
|
||||
let saved = if library.is_saved_show(self) {
|
||||
if library.cfg.values().use_nerdfont.unwrap_or(false) {
|
||||
|
||||
@@ -15,7 +15,9 @@ use crate::track::Track;
|
||||
pub trait ListItem: Sync + Send + 'static {
|
||||
fn is_playing(&self, queue: Arc<Queue>) -> bool;
|
||||
fn display_left(&self) -> String;
|
||||
fn display_center(&self, library: Arc<Library>) -> String;
|
||||
fn display_center(&self, _library: Arc<Library>) -> String {
|
||||
"".to_string()
|
||||
}
|
||||
fn display_right(&self, library: Arc<Library>) -> String;
|
||||
fn play(&mut self, queue: Arc<Queue>);
|
||||
fn queue(&mut self, queue: Arc<Queue>);
|
||||
|
||||
Reference in New Issue
Block a user