Skip to content

Commit

Permalink
Minor refactoring and remove print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
vapidinfinity committed Nov 20, 2023
1 parent 7951076 commit c3e0cef
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Mythic/Controllers/Base/Legendary/Legendary.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class Legendary {
/// The file location for legendary's configuration files.
static let configLocation = "\(Bundle.appHome!.path)/legendary"

/// Logger instance for logging
private static let log = Logger(
/// Logger instance for legendary
public static let log = Logger(
subsystem: Bundle.main.bundleIdentifier!,
category: "legendary"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class WhiskyInterface {
static func getBottleMetadata(bottleURL: URL) -> [String: Any]? {
if let metadata = try? Data(contentsOf: bottleURL.appending(path: "Metadata.plist")),
let plist = try? PropertyListSerialization.propertyList(from: metadata, format: nil) {
print("plist is\n \(plist as? [String: Any])")
return plist as? [String: Any]
} else { log.warning("Unable to get bottle metadata.") }

Expand Down
2 changes: 1 addition & 1 deletion Mythic/Extensions/Base/Global.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Foundation
}
}

EventManager.shared.publish("test", "real")
EventManager.shared.publish("test", "real?")
*/

class EventManager {
Expand Down
2 changes: 1 addition & 1 deletion Mythic/Views/Base/GameList/Extensions/Install.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ extension GameListView {
activeAlert = .installError
isAlertPresented = true
default:
print()
do { }
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions Mythic/Views/Base/GameList/GameList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ struct GameListView: View {
isParsingOptionalPacks = true
}
}

print("optional packs: \(optionalPacks)")
group.leave()
}
}
Expand Down
4 changes: 0 additions & 4 deletions Mythic/Views/Navigation/Library/Extensions/GameImport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ extension LibraryView {
Text(game.title)
}
}
.onHover {_ in
print("\(selectedGame)")
}

HStack {
TextField("Enter game path or click \"Browse...\"", text: $gamePath)
Expand Down Expand Up @@ -97,7 +94,6 @@ extension LibraryView {

Button("Done", role: .none) {
var realSelectedPlatform = selectedPlatform
print("seel \(selectedGame)")
if selectedPlatform == "macOS" {
realSelectedPlatform = "Mac"
}
Expand Down

0 comments on commit c3e0cef

Please sign in to comment.