Remove the deprecated getAlphabetialAlbums method

master
jvoisin 6 years ago committed by GitHub
parent 643be3930f
commit 1f1a22fca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      airsonic-main/src/main/java/org/airsonic/player/controller/SubsonicRESTController.java
  2. 14
      airsonic-main/src/main/java/org/airsonic/player/dao/AlbumDao.java

@ -1138,9 +1138,9 @@ public class SubsonicRESTController {
} else if ("newest".equals(type)) {
albums = albumDao.getNewestAlbums(offset, size, musicFolders);
} else if ("alphabeticalByArtist".equals(type)) {
albums = albumDao.getAlphabetialAlbums(offset, size, true, musicFolders);
albums = albumDao.getAlphabeticalAlbums(offset, size, true, false, musicFolders);
} else if ("alphabeticalByName".equals(type)) {
albums = albumDao.getAlphabetialAlbums(offset, size, false, musicFolders);
albums = albumDao.getAlphabeticalAlbums(offset, size, false, false, musicFolders);
} else if ("byGenre".equals(type)) {
albums = albumDao.getAlbumsByGenre(offset, size, getRequiredStringParameter(request, "genre"), musicFolders);
} else if ("byYear".equals(type)) {

@ -147,20 +147,6 @@ public class AlbumDao extends AbstractDao {
album.setId(id);
}
/**
* Returns albums in alphabetical order.
*
* @param offset Number of albums to skip.
* @param count Maximum number of albums to return.
* @param byArtist Whether to sort by artist name
* @param musicFolders Only return albums from these folders.
* @return Albums in alphabetical order.
*/
@Deprecated
public List<Album> getAlphabetialAlbums(final int offset, final int count, boolean byArtist, final List<MusicFolder> musicFolders) {
return getAlphabeticalAlbums(offset, count, byArtist, false, musicFolders);
}
/**
* Returns albums in alphabetical order.
*

Loading…
Cancel
Save