X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fabc.c;h=abdc2585bc05b86f6104fc7d34f11f708233ea9e;hb=7eb1190fa6977465f4ce4acb808fb5ad48e4f2c1;hp=97b5884ab37dd7c36da6733869c93b79189ba156;hpb=2839fd9b16fe61e2bc4b93b5a034ef26776cd4fc;p=swftools.git diff --git a/lib/as3/abc.c b/lib/as3/abc.c index 97b5884..abdc258 100644 --- a/lib/as3/abc.c +++ b/lib/as3/abc.c @@ -808,24 +808,6 @@ void* swf_ReadABC(TAG*tag) return file; } -static void code_write(TAG*tag, abc_code_t*code, pool_t*pool, abc_file_t*file) -{ - int len = 0; - abc_code_t*c = code; - while(c) { - len += opcode_write(0, c, pool, file); - c = c->next; - } - swf_SetU30(tag, len); - int pos = tag->len; - c = code; - while(c) { - opcode_write(tag, c, pool, file); - c = c->next; - } - assert(tag->len - pos == len); -} - void swf_WriteABC(TAG*abctag, void*code) { abc_file_t*file = (abc_file_t*)code;