[vlc-devel] commit: osx dialog provider: minor cleanup ( Felix Paul Kühne )

git version control git at videolan.org
Sat Dec 26 04:20:23 CET 2009


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Dec 26 04:20:19 2009 +0100| [e66e185558bc2cd366f190fb498475b26e40e2db] | committer: Felix Paul Kühne 

osx dialog provider: minor cleanup

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e66e185558bc2cd366f190fb498475b26e40e2db
---

 modules/gui/macosx_dialog_provider/VLCLoginPanel.m |   13 -------------
 .../gui/macosx_dialog_provider/dialogProvider.m    |    1 -
 2 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/modules/gui/macosx_dialog_provider/VLCLoginPanel.m b/modules/gui/macosx_dialog_provider/VLCLoginPanel.m
index 81663f8..856a703 100644
--- a/modules/gui/macosx_dialog_provider/VLCLoginPanel.m
+++ b/modules/gui/macosx_dialog_provider/VLCLoginPanel.m
@@ -39,19 +39,6 @@
                                 defer:YES];
 }
 
-#define addButton( theButton, ox, oy, title, action )           \
-s_rc.origin.x = ox;                                             \
-s_rc.origin.y = oy;                                             \
-s_rc.size.height = 32;                                          \
-s_rc.size.width = 108;                                          \
-theButton = [[NSButton alloc] initWithFrame:s_rc];              \
-[theButton setButtonType:NSMomentaryLightButton];               \
-[theButton setTitle:title];                                     \
-[theButton setBordered:NO];                                     \
-[theButton setTarget:self];                                     \
-[theButton setAction:@selector(action:)];                       \
-[ourContentView addSubview:theButton]
-
 - (void)createContentView
 {
     NSRect s_rc = [self frame];
diff --git a/modules/gui/macosx_dialog_provider/dialogProvider.m b/modules/gui/macosx_dialog_provider/dialogProvider.m
index d997292..26be346 100644
--- a/modules/gui/macosx_dialog_provider/dialogProvider.m
+++ b/modules/gui/macosx_dialog_provider/dialogProvider.m
@@ -86,7 +86,6 @@ int OpenIntf(vlc_object_t *p_this)
 
     memset(p_intf->p_sys,0,sizeof(*p_intf->p_sys));
 
-//    p_intf->b_should_run_on_first_thread = true;
     p_intf->pf_run = Run;
 
     msg_Dbg(p_intf,"Opening Mac OS X dialog provider");




More information about the vlc-devel mailing list