Revision: 7524
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7524&view=rev
Author:   hofman
Date:     2011-10-25 10:26:50 +0000 (Tue, 25 Oct 2011)
Log Message:
-----------
remove duplicate method implementation

Modified Paths:
--------------
    trunk/SKPDFView.m

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2011-10-24 22:29:16 UTC (rev 7523)
+++ trunk/SKPDFView.m   2011-10-25 10:26:50 UTC (rev 7524)
@@ -969,29 +969,6 @@
     isZooming = NO;
 }
 
-- (CGFloat)physicalScaleFactor {
-    CGFloat scale = [self scaleFactor];
-    NSScreen *screen = [[self window] screen];
-       CGDirectDisplayID displayID = (CGDirectDisplayID)[[[screen 
deviceDescription] objectForKey:@"NSScreenNumber"] unsignedIntValue];
-       CGSize physicalSize = CGDisplayScreenSize(displayID);
-    NSSize resolution = [[[screen deviceDescription] 
objectForKey:NSDeviceResolution] sizeValue];
-       
-    if (CGSizeEqualToSize(physicalSize, CGSizeZero) == NO)
-        scale *= (physicalSize.width * resolution.width) / 
(CGDisplayPixelsWide(displayID) * 25.4f);
-    return scale;
-}
-
-- (void)setPhysicalScaleFactor:(CGFloat)scale {
-    NSScreen *screen = [[self window] screen];
-       CGDirectDisplayID displayID = (CGDirectDisplayID)[[[screen 
deviceDescription] objectForKey:@"NSScreenNumber"] unsignedIntValue];
-       CGSize physicalSize = CGDisplayScreenSize(displayID);
-    NSSize resolution = [[[screen deviceDescription] 
objectForKey:NSDeviceResolution] sizeValue];
-       
-    if (CGSizeEqualToSize(physicalSize, CGSizeZero) == NO)
-        scale *= CGDisplayPixelsWide(displayID) * 25.4f / (physicalSize.width 
* resolution.width);
-    [self setScaleFactor:scale];
-}
-
 // we don't want to steal the printDocument: action from the responder chain
 - (void)printDocument:(id)sender{}
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to