Skip to content

Commit f900cec

Browse files
committed
Remove stuff
1 parent 0dd29cb commit f900cec

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

QLWindowsExecutable/GenerateThumbnailForURL.swift

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,7 @@ func extractWindowsIcon(file: NSURL) -> NSImage? {
4646
let imageData = imgRep.representationUsingType(NSBitmapImageFileType.NSPNGFileType, properties: [String : AnyObject]())
4747

4848
QLThumbnailRequestSetImageWithData(thumbnail, imageData, nil);
49-
50-
//
51-
// // Hand memory over to ARC
52-
// var cgContext = _cgContext.takeRetainedValue()
53-
// _cgContext.release()
54-
//
55-
// let context = NSGraphicsContext(graphicsPort: &cgContext, flipped: true)
56-
// NSGraphicsContext.setCurrentContext(context)
57-
// image.drawInRect(NSRect(x: 0, y: 0, width: image.size.width, height: image.size.height))
58-
//
59-
// QLThumbnailRequestFlushContext(thumbnail, cgContext)
60-
49+
6150
return noErr
6251
}
6352
}

0 commit comments

Comments
 (0)