diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-01-09 13:27:17 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-01-09 17:46:26 +0100 |
commit | 9d96d035d3b7af53256ee64b5ddb0ad8bcf8df38 (patch) | |
tree | 408cbbb72315089db1b8efe58bce322f8734bb1b /platform/ios/Classes/MuDocRef.m | |
parent | 50b39c939345c36eb5e95c8a71ccdb8cd24c9aad (diff) | |
download | mupdf-9d96d035d3b7af53256ee64b5ddb0ad8bcf8df38.tar.xz |
Remove platform/ios directory.
The iOS viewer has been moved to its own git repository.
Diffstat (limited to 'platform/ios/Classes/MuDocRef.m')
-rw-r--r-- | platform/ios/Classes/MuDocRef.m | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/platform/ios/Classes/MuDocRef.m b/platform/ios/Classes/MuDocRef.m deleted file mode 100644 index d8d3295a..00000000 --- a/platform/ios/Classes/MuDocRef.m +++ /dev/null @@ -1,53 +0,0 @@ -#include "common.h" -#include "mupdf/pdf.h" -#import "MuDocRef.h" - -@implementation MuDocRef - --(instancetype) initWithFilename:(NSString *)aFilename; -{ - self = [super init]; - if (self) - { - dispatch_sync(queue, ^{}); - - fz_var(self); - - fz_try(ctx) - { - doc = fz_open_document(ctx, aFilename.UTF8String); - if (!doc) - { - [self release]; - self = nil; - } - else - { - pdf_document *idoc = pdf_specifics(ctx, doc); - if (idoc) pdf_enable_js(ctx, idoc); - interactive = (idoc != NULL) && (pdf_crypt_version(ctx, idoc) == 0); - } - } - fz_catch(ctx) - { - if (self) - { - fz_drop_document(ctx, doc); - [self release]; - self = nil; - } - } - } - return self; -} - --(void) dealloc -{ - __block fz_document *block_doc = doc; - dispatch_async(queue, ^{ - fz_drop_document(ctx, block_doc); - }); - [super dealloc]; -} - -@end |