File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,6 @@ public func track_to_scm_record(track: RBSpotifyItem) -> SCM {
47
47
}
48
48
49
49
@objc class RBGuileBridge : NSObject {
50
- private static func hook_with_track( hook_name: String , track: RBSpotifyItem ) {
51
- let track_record = track_to_scm_record ( track: track)
52
- self . call_hook ( hook_name: hook_name, args_list: scm_list_1 ( track_record) )
53
- }
54
-
55
50
private static func call_hook( hook_name: String , args_list: SCM ) {
56
51
assert ( Thread . isMainThread)
57
52
@@ -76,11 +71,13 @@ public func track_to_scm_record(track: RBSpotifyItem) -> SCM {
76
71
}
77
72
78
73
static func player_playing_hook( track: RBSpotifyItem ) {
79
- self . hook_with_track ( hook_name: " player-started-hook " , track: track)
74
+ self . call_hook ( hook_name: " player-started-hook " ,
75
+ args_list: scm_list_1 ( track_to_scm_record ( track: track) ) )
80
76
}
81
77
82
78
static func player_endoftrack_hook( track: RBSpotifyItem ) {
83
- self . hook_with_track ( hook_name: " player-endoftrack-hook " , track: track)
79
+ self . call_hook ( hook_name: " player-endoftrack-hook " ,
80
+ args_list: scm_list_1 ( track_to_scm_record ( track: track) ) )
84
81
}
85
82
86
83
static func player_paused_hook( ) {
You can’t perform that action at this time.
0 commit comments