aboutsummaryrefslogtreecommitdiff
path: root/src/transform.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-10-07 16:26:57 +0200
committerPřemysl Eric Janouch <p@janouch.name>2021-10-07 16:28:44 +0200
commit20fcf2a0c79b8433bf67594d45af54001ca1b613 (patch)
tree4237e3a4cf46b9e1875ad1a236f613f54e45e911 /src/transform.c
parented8b1bcdad7c430af1eef5fbe78b6ec4eb3eb60e (diff)
downloadtdv-20fcf2a0c79b8433bf67594d45af54001ca1b613.tar.gz
tdv-20fcf2a0c79b8433bf67594d45af54001ca1b613.tar.xz
tdv-20fcf2a0c79b8433bf67594d45af54001ca1b613.zip
tabfile: make it possible to set metadata
And some related clean-up.
Diffstat (limited to 'src/transform.c')
-rw-r--r--src/transform.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/transform.c b/src/transform.c
index 2144c6b..38bdad6 100644
--- a/src/transform.c
+++ b/src/transform.c
@@ -140,31 +140,6 @@ update_from_filter (StardictDict *dict, Generator *generator,
return TRUE;
}
-// FIXME: copied from add-pronunciation.c, should merge it somewhere (utils?)
-/// Copy the contents of one StardictInfo object into another. Ignores path.
-static void
-stardict_info_copy (StardictInfo *dest, const StardictInfo *src)
-{
- dest->version = src->version;
-
- guint i;
- for (i = 0; i < _stardict_ifo_keys_length; i++)
- {
- const struct stardict_ifo_key *key = &_stardict_ifo_keys[i];
- if (key->type == IFO_STRING)
- {
- gchar **p = &G_STRUCT_MEMBER (gchar *, dest, key->offset);
- gchar *q = G_STRUCT_MEMBER (gchar *, src, key->offset);
-
- g_free (*p);
- *p = q ? g_strdup (q) : NULL;
- }
- else
- G_STRUCT_MEMBER (gulong, dest, key->offset) =
- G_STRUCT_MEMBER (gulong, src, key->offset);
- }
-}
-
int
main (int argc, char *argv[])
{