summaryrefslogtreecommitdiff
path: root/vcl/source/fontsubset
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-21 10:15:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-21 10:07:37 +0000
commit0649622956431e0a1955cb80d1175025401ab5e5 (patch)
treecdaa1ff406d232399d53594ad1a32691402ab665 /vcl/source/fontsubset
parentede35e5c693a287f31e3c02d8afd33580e827380 (diff)
loplugin:unusedmethods
Change-Id: I52a9f16f3ed543a3c83ca111df70e3f7ae1ef33c Reviewed-on: https://gerrit.libreoffice.org/34508 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/fontsubset')
-rw-r--r--vcl/source/fontsubset/ttcr.cxx12
-rw-r--r--vcl/source/fontsubset/ttcr.hxx7
2 files changed, 0 insertions, 19 deletions
diff --git a/vcl/source/fontsubset/ttcr.cxx b/vcl/source/fontsubset/ttcr.cxx
index ff7169cfed29..ac335512a6bc 100644
--- a/vcl/source/fontsubset/ttcr.cxx
+++ b/vcl/source/fontsubset/ttcr.cxx
@@ -1234,18 +1234,6 @@ sal_uInt32 glyfCount(const TrueTypeTable *table)
return listCount(static_cast<list>(table->data));
}
-void nameAdd(TrueTypeTable *table, NameRecord *nr)
-{
- list l;
-
- assert(table != nullptr);
- assert(table->tag == T_name);
-
- l = static_cast<list>(table->data);
-
- listAppend(l, NameRecordNewCopy(nr));
-}
-
static TrueTypeTable *FindTable(TrueTypeCreator *tt, sal_uInt32 tag)
{
if (listIsEmpty(tt->tables)) return nullptr;
diff --git a/vcl/source/fontsubset/ttcr.hxx b/vcl/source/fontsubset/ttcr.hxx
index 3f9963dde805..10ce873fbc90 100644
--- a/vcl/source/fontsubset/ttcr.hxx
+++ b/vcl/source/fontsubset/ttcr.hxx
@@ -204,13 +204,6 @@ namespace vcl
*/
sal_uInt32 glyfCount(const TrueTypeTable *);
-/**
- * Add a Name Record to a name table.
- * NOTE: This function duplicates NameRecord, so the argument
- * has to be deallocated by the caller (unlike glyfAdd)
- */
- void nameAdd(TrueTypeTable *, NameRecord *nr);
-
} // namespace
extern "C"