Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-06-05 21:56:36 +0300
committerJacques Lucke <jacques@blender.org>2020-06-05 21:56:36 +0300
commita77350cce282e98ff56e28d5c934f25113be3c85 (patch)
treec754f76fe804ae7748ff12f2aaef3b82ff45ceca /source/blender/blenloader/intern
parent69c9204026c2e39dd7273238b8b8e453e0d8946a (diff)
Cleanup: remove unused functions
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r--source/blender/blenloader/intern/writefile.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index 0e0098cf6e3..eb38cbdcdc1 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -577,34 +577,12 @@ static void writestruct_at_address_nr(
mywrite(wd, data, bh.len);
}
-static void writestruct_at_address_id(
- WriteData *wd, int filecode, const char *structname, int nr, const void *adr, const void *data)
-{
- if (adr == NULL || data == NULL || nr == 0) {
- return;
- }
-
- const int SDNAnr = DNA_struct_find_nr(wd->sdna, structname);
- if (UNLIKELY(SDNAnr == -1)) {
- printf("error: can't find SDNA code <%s>\n", structname);
- return;
- }
-
- writestruct_at_address_nr(wd, filecode, SDNAnr, nr, adr, data);
-}
-
static void writestruct_nr(
WriteData *wd, int filecode, const int struct_nr, int nr, const void *adr)
{
writestruct_at_address_nr(wd, filecode, struct_nr, nr, adr, adr);
}
-static void writestruct_id(
- WriteData *wd, int filecode, const char *structname, int nr, const void *adr)
-{
- writestruct_at_address_id(wd, filecode, structname, nr, adr, adr);
-}
-
/* do not use for structs */
static void writedata(WriteData *wd, int filecode, int len, const void *adr)
{