Skip to content

Commit

Permalink
Remove deprecated option playlistsDirectory from options.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed Oct 4, 2023
1 parent 131e8d2 commit afc270b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
2 changes: 0 additions & 2 deletions src/main/java/listfix/config/IAppOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ public interface IAppOptions extends IPlaylistOptions

boolean getAutoRefreshMediaLibraryOnStartup();

String getPlaylistsDirectory();

/**
* Returns configured application font.
*/
Expand Down
8 changes: 0 additions & 8 deletions src/main/java/listfix/controller/ListFixController.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ private ListFixController()
this.mediaLibraryConfiguration = MediaLibraryConfiguration.load();
this.applicationOptionsConfiguration = ApplicationOptionsConfiguration.load();

String oldPlaylistDirectory = this.applicationOptionsConfiguration.getConfig().getPlaylistsDirectory();
if (this.applicationOptionsConfiguration.getConfig().getPlaylistDirectories().isEmpty() && oldPlaylistDirectory != null && !oldPlaylistDirectory.isEmpty())
{
this.logger.error(String.format("Migrating playlists directory: %s", oldPlaylistDirectory));
this.applicationOptionsConfiguration.getConfig().getPlaylistDirectories().add(oldPlaylistDirectory);
this.mediaLibraryConfiguration.writeOnBackground();
}

this.history = new PlaylistHistory(this.applicationOptionsConfiguration.getConfig().getMaxPlaylistHistoryEntries());
this.history.load();

Expand Down
12 changes: 0 additions & 12 deletions src/main/java/listfix/json/JsonAppOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,6 @@ public void setAlwaysUseUNCPaths(boolean alwaysUseUNCPaths)
this.alwaysUseUNCPaths = alwaysUseUNCPaths;
}


@Override
public String getPlaylistsDirectory()
{
return this.playlistsDirectory;
}

public void setPlaylistsDirectory(String playlistsDirectory)
{
this.playlistsDirectory = playlistsDirectory;
}

@Override
public Set<String> getPlaylistDirectories()
{
Expand Down

0 comments on commit afc270b

Please sign in to comment.