History

mac/option: remove unused and obsolete variables

der richter committed 2 years ago

Commit 2d9be041 parent dc5059d3 files · +3 −8Browse files

Unified · Split

3 files
  1. osdep/mac/option_helper.swift +1 −6
  2. video/out/cocoa_cb_common.swift +1 −1
  3. video/out/mac_common.swift +1 −1
osdep/mac/option_helper.swift+1−6
@@ -20,7 +20,6 @@ import Cocoa · 19 unmodified lines
2020 typealias swift_wakeup_cb_fn = (@convention(c) (UnsafeMutableRawPointer?) -> Void)?
2121
2222 class OptionHelper: NSObject {
23− var log: LogHelper
2423 var vo: UnsafeMutablePointer<vo>
2524 var optsCachePtr: UnsafeMutablePointer<m_config_cache>
2625 var optsPtr: UnsafeMutablePointer<mp_vo_opts>
@@ -30,15 +29,11 @@ class OptionHelper: NSObject { · 3 unmodified lines
3029 // these computed properties return a local copy of the struct accessed:
3130 // - don't use if you rely on the pointers
3231 // - only for reading
33− var vout: vo { get { return vo.pointee } }
34− var optsCache: m_config_cache { get { return optsCachePtr.pointee } }
3532 var opts: mp_vo_opts { get { return optsPtr.pointee } }
36− var macOptsCache: m_config_cache { get { return macOptsCachePtr.pointee } }
3733 var macOpts: macos_opts { get { return macOptsPtr.pointee } }
3834
39− init(_ vo: UnsafeMutablePointer<vo>, _ log: LogHelper) {
35+ init(_ vo: UnsafeMutablePointer<vo>) {
4036 self.vo = vo
41− self.log = log
4237
4338 guard let cache = m_config_cache_alloc(vo, vo.pointee.global, Application.getVoSubConf()),
4439 let macCache = m_config_cache_alloc(vo, vo.pointee.global, Application.getMacOSConf()) else
video/out/cocoa_cb_common.swift+1−1
@@ -39,7 +39,7 @@ class CocoaCB: Common { · 38 unmodified lines
3939 }
4040
4141 func preinit(_ vo: UnsafeMutablePointer<vo>) {
42− option = OptionHelper(vo, log)
42+ option = OptionHelper(vo)
4343 input = InputHelper(vo.pointee.input_ctx, option)
4444
4545 if backendState == .uninitialized {
video/out/mac_common.swift+1−1
@@ -27,7 +27,7 @@ class MacCommon: Common { · 26 unmodified lines
2727 @objc init(_ vo: UnsafeMutablePointer<vo>) {
2828 let newlog = mp_log_new(vo, vo.pointee.log, "mac")
2929 super.init(newlog)
30− option = OptionHelper(vo, log)
30+ option = OptionHelper(vo)
3131 input = InputHelper(vo.pointee.input_ctx, option)
3232 timer = PreciseTimer(common: self)
3333

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t