summaryrefslogtreecommitdiff
path: root/vcl/source/fontsubset/ttcr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/fontsubset/ttcr.cxx')
-rw-r--r--vcl/source/fontsubset/ttcr.cxx33
1 files changed, 0 insertions, 33 deletions
diff --git a/vcl/source/fontsubset/ttcr.cxx b/vcl/source/fontsubset/ttcr.cxx
index 5214f15885c4..4bd53ca6e053 100644
--- a/vcl/source/fontsubset/ttcr.cxx
+++ b/vcl/source/fontsubset/ttcr.cxx
@@ -226,29 +226,6 @@ SFErrCodes TrueTypeCreator::StreamToMemory(std::vector<sal_uInt8>& rOutBuffer)
return SFErrCodes::Ok;
}
-SFErrCodes TrueTypeCreator::StreamToFile(const char* fname)
-{
- SFErrCodes r;
- std::vector<sal_uInt8> aOutBuffer;
-
- if ((r = StreamToMemory(aOutBuffer)) != SFErrCodes::Ok) return r;
- r = SFErrCodes::BadFile;
- if (fname)
- {
- FILE* fd = fopen(fname, "wb");
- if (fd)
- {
- if (fwrite(aOutBuffer.data(), 1, aOutBuffer.size(), fd) != aOutBuffer.size()) {
- r = SFErrCodes::FileIo;
- } else {
- r = SFErrCodes::Ok;
- }
- fclose(fd);
- }
- }
- return r;
-}
-
/*
* TrueTypeTable private methods
*/
@@ -750,16 +727,6 @@ TrueTypeTableCmap::TrueTypeTableCmap()
m_cmap->s.reset(new CmapSubTable[CMAP_SUBTABLE_INIT]);
}
-TrueTypeTableName::TrueTypeTableName(int n, NameRecord const *nr)
- : TrueTypeTable(T_name)
-{
- m_list.resize(n);
- for (int i = 0; i < n; i++) {
- const NameRecord* p = nr + i;
- m_list[i] = *p;
- }
-}
-
TrueTypeTableName::TrueTypeTableName(std::vector<NameRecord> nr)
: TrueTypeTable(T_name)
, m_list(std::move(nr))