Remove GSSVG* files since they are not needed

This commit is contained in:
Gregory John Casamento 2019-12-03 17:19:18 -05:00
parent 95dbcd2b40
commit 782a8efcbe
5 changed files with 3 additions and 83 deletions

View file

@ -1,47 +0,0 @@
/* Definition of class GSSVGImageRep
Copyright (C) 2019 Free Software Foundation, Inc.
By: heron
Date: Fri Nov 15 04:41:51 EST 2019
This file is part of the GNUstep Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02111 USA.
*/
#ifndef _GSSVGImageRep_h_GNUSTEP_GUI_INCLUDE
#define _GSSVGImageRep_h_GNUSTEP_GUI_INCLUDE
#include <AppKit/NSImageRep.h>
#if OS_API_VERSION(MAC_OS_X_VERSION_10_0, GS_API_LATEST)
#if defined(__cplusplus)
extern "C" {
#endif
@interface GSSVGImageRep : NSImageRep
@end
#if defined(__cplusplus)
}
#endif
#endif /* GS_API_MACOSX */
#endif /* _GSSVGImageRep_h_GNUSTEP_GUI_INCLUDE */

View file

@ -33,10 +33,9 @@
extern "C" {
#endif
@interface NSPDFImageRep : NSImageRep //GSImageMagickImageRep
@interface NSPDFImageRep : NSImageRep
{
NSArray *_pageReps;
NSUInteger _pageCount;
NSUInteger _currentPage;
NSData *_pdfRepresentation;
}

View file

@ -37,7 +37,7 @@ extern "C" {
@class NSURL, NSArray, NSMutableDictionary;
@interface NSPDFInfo : NSObject <NSCoding, NSCopying>
@interface NSPDFInfo : NSObject <NSCoding, NSCopying>
{
NSURL *_url;
BOOL _fileExtensionHidden;

View file

@ -1,30 +0,0 @@
/* Implementation of class GSSVGImageRep
Copyright (C) 2019 Free Software Foundation, Inc.
By: heron
Date: Fri Nov 15 04:41:51 EST 2019
This file is part of the GNUstep Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02111 USA.
*/
#include <AppKit/GSSVGImageRep.h>
@implementation GSSVGImageRep
@end

View file

@ -78,12 +78,10 @@
#if HAVE_IMAGEMAGICK
ASSIGN(_pageReps, [GSImageMagickImageRep imageRepsWithData: imageData]);
_size = [[_pageReps objectAtIndex: 0] size];
_pageCount = [_pageReps count];
_currentPage = 1;
#else
ASSIGN(_pageReps, [NSArray array]);
_size = NSMakeSize(0,0);
_pageCount = 0;
_currentPage = 0;
#endif
ASSIGNCOPY(_pdfRepresentation, imageData);
@ -117,7 +115,7 @@
- (NSInteger) pageCount
{
return _pageCount;
return [_pageReps count];
}
- (NSData *) PDFRepresentation