[vlc-commits] macosx: Remove VLCProgressView
Marvin Scholz
git at videolan.org
Sun Jul 23 17:32:25 CEST 2017
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sun Jul 23 17:03:29 2017 +0200| [1d0379b4be21af138c2d0146e658434381dbc907] | committer: Marvin Scholz
macosx: Remove VLCProgressView
Remove unused VLCProgressView
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1d0379b4be21af138c2d0146e658434381dbc907
---
modules/gui/macosx/misc.h | 10 ----------
modules/gui/macosx/misc.m | 44 --------------------------------------------
2 files changed, 54 deletions(-)
diff --git a/modules/gui/macosx/misc.h b/modules/gui/macosx/misc.h
index 81bc2e42c4..40ab72cf82 100644
--- a/modules/gui/macosx/misc.h
+++ b/modules/gui/macosx/misc.h
@@ -50,16 +50,6 @@
@end
/*****************************************************************************
- * ProgressView
- *****************************************************************************/
-
- at interface VLCProgressView : NSView
-
-- (void)scrollWheel:(NSEvent *)o_event;
-
- at end
-
-/*****************************************************************************
* VLCVolumeSliderCommon
*****************************************************************************/
diff --git a/modules/gui/macosx/misc.m b/modules/gui/macosx/misc.m
index b2cde3d88a..6aeb398cdf 100644
--- a/modules/gui/macosx/misc.m
+++ b/modules/gui/macosx/misc.m
@@ -150,50 +150,6 @@
/*****************************************************************************
- * ProgressView
- *****************************************************************************/
-
- at implementation VLCProgressView : NSView
-
-- (void)scrollWheel:(NSEvent *)o_event
-{
- BOOL b_forward = NO;
- CGFloat f_deltaY = [o_event deltaY];
- CGFloat f_deltaX = [o_event deltaX];
-
- if ([o_event isDirectionInvertedFromDevice])
- f_deltaX = -f_deltaX; // optimisation, actually double invertion of f_deltaY here
- else
- f_deltaY = -f_deltaY;
-
- // positive for left / down, negative otherwise
- CGFloat f_delta = f_deltaX + f_deltaY;
- CGFloat f_abs;
- int i_vlckey;
-
- if (f_delta > 0.0f)
- f_abs = f_delta;
- else {
- b_forward = YES;
- f_abs = -f_delta;
- }
-
- for (NSUInteger i = 0; i < (int)(f_abs/4.+1.) && f_abs > 0.05 ; i++) {
- if (b_forward)
- [[VLCCoreInteraction sharedInstance] forwardExtraShort];
- else
- [[VLCCoreInteraction sharedInstance] backwardExtraShort];
- }
-}
-
-- (BOOL)acceptsFirstResponder
-{
- return YES;
-}
-
- at end
-
-/*****************************************************************************
* VLCVolumeSliderCommon
*****************************************************************************/
More information about the vlc-commits
mailing list