summaryrefslogtreecommitdiff
path: root/splash
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2012-11-14 14:58:45 +0100
committerAlbert Astals Cid <aacid@kde.org>2012-11-14 14:58:45 +0100
commitc7e3c2d7087e4fc36564ba7bd55e27e100e0a5e5 (patch)
tree851b2c157b598ae05dfd1aa40f65396d042a9f18 /splash
parent06951f529e6514a0c26d6d821ab5fab0920a7cf3 (diff)
Remove unused code
Diffstat (limited to 'splash')
-rw-r--r--splash/SplashFTFontEngine.cc42
1 files changed, 1 insertions, 41 deletions
diff --git a/splash/SplashFTFontEngine.cc b/splash/SplashFTFontEngine.cc
index 7a4568dc..9fef8f00 100644
--- a/splash/SplashFTFontEngine.cc
+++ b/splash/SplashFTFontEngine.cc
@@ -12,7 +12,7 @@
// under GPL version 2 or later
//
// Copyright (C) 2006 Takashi Iwai <tiwai@suse.de>
-// Copyright (C) 2009, 2011 Albert Astals Cid <aacid@kde.org>
+// Copyright (C) 2009, 2011, 2012 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2009 Petr Gajdos <pgajdos@novell.com>
// Copyright (C) 2011 Andreas Hartmetz <ahartmetz@gmail.com>
//
@@ -48,14 +48,6 @@ extern "C" int unlink(char *filename);
#endif
//------------------------------------------------------------------------
-
-#if 0
-static void fileWrite(void *stream, const char *data, int len) {
- fwrite(data, 1, len, (FILE *)stream);
-}
-#endif
-
-//------------------------------------------------------------------------
// SplashFTFontEngine
//------------------------------------------------------------------------
@@ -178,43 +170,11 @@ SplashFontFile *SplashFTFontEngine::loadTrueTypeFont(SplashFontFileID *idA,
int *codeToGID,
int codeToGIDLen,
int faceIndex) {
-#if 0
- FoFiTrueType *ff;
- GooString *tmpFileName;
- FILE *tmpFile;
- SplashFontFile *ret;
-
- if (!(ff = FoFiTrueType::load(fileName))) {
- return NULL;
- }
- tmpFileName = NULL;
- if (!openTempFile(&tmpFileName, &tmpFile, "wb")) {
- delete ff;
- return NULL;
- }
- ff->writeTTF(&fileWrite, tmpFile);
- delete ff;
- fclose(tmpFile);
- ret = SplashFTFontFile::loadTrueTypeFont(this, idA,
- tmpFileName->getCString(),
- gTrue, codeToGID, codeToGIDLen,
- faceIndex);
- if (ret) {
- if (deleteFile) {
- unlink(fileName);
- }
- } else {
- unlink(tmpFileName->getCString());
- }
- delete tmpFileName;
- return ret;
-#else
SplashFontFile *ret;
ret = SplashFTFontFile::loadTrueTypeFont(this, idA, src,
codeToGID, codeToGIDLen,
faceIndex);
return ret;
-#endif
}
#endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H