Skip to content

Commit

Permalink
Remove macOS unavailability for library methods
Browse files Browse the repository at this point in the history
  • Loading branch information
rudrankriyam committed Dec 12, 2023
1 parent e0dafcf commit df1bc23
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions Sources/MusadoraKit/Library/LibraryAlbum.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ public extension MLibrary {
/// - Parameters:
/// - id: The unique identifier for the album.
/// - Returns: `Album` matching the given identifier.
@available(macOS, unavailable)
@available(macCatalyst, unavailable)
static func album(id: MusicItemID) async throws -> Album {
if #available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 14, macCatalyst 17.0, *) {
var request = MusicLibraryRequest<Album>()
Expand All @@ -42,8 +40,6 @@ public extension MLibrary {
/// - Parameters:
/// - limit: The number of albums returned.
/// - Returns: `Albums` for the given limit.
@available(macOS, unavailable)
@available(macCatalyst, unavailable)
static func albums(limit: Int = 50) async throws -> Albums {
if #available(iOS 16.0, macOS 14.0, macCatalyst 17.0, tvOS 16.0, watchOS 9.0, *) {
var request = MusicLibraryRequest<Album>()
Expand Down
2 changes: 0 additions & 2 deletions Sources/MusadoraKit/Library/LibraryArtist.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ public extension MLibrary {
///
/// For iOS 15, it uses the custom structure `MusicLibraryResourceRequest`
/// that fetches the data from Apple Music API that does not fetch all the artists in one request.
@available(macOS, unavailable)
@available(macCatalyst, unavailable)
static func artists(limit: Int = 50) async throws -> Artists {
if #available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 14.0, macCatalyst 17.0, *) {
var request = MusicLibraryRequest<Artist>()
Expand Down

0 comments on commit df1bc23

Please sign in to comment.