Commit: a77350cce282e98ff56e28d5c934f25113be3c85
Author: Jacques Lucke
Date:   Fri Jun 5 20:56:36 2020 +0200
Branches: master
https://developer.blender.org/rBa77350cce282e98ff56e28d5c934f25113be3c85

Cleanup: remove unused functions

===================================================================

M       source/blender/blenloader/intern/writefile.c

===================================================================

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)
 {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to