Index: trunk/src_plugins/io_lihata/write.c =================================================================== --- trunk/src_plugins/io_lihata/write.c (revision 27354) +++ trunk/src_plugins/io_lihata/write.c (revision 27355) @@ -1701,31 +1701,6 @@ return res; } - -static int io_lihata_dump_nth_subc(pcb_plug_io_t *ctx, FILE *f, pcb_data_t *data, int enforce1, long subc_idx) -{ - pcb_subc_t *sc; - - if ((subc_idx < 0) && (enforce1) && (pcb_subclist_length(&data->subc)) > 1) { - pcb_message(PCB_MSG_ERROR, "Can't save more than one subcircuit from a buffer\n"); - return -1; - } - if (pcb_subclist_length(&data->subc) < 1) { - pcb_message(PCB_MSG_ERROR, "there's no subcircuit in the buffer\n"); - return -1; - } - - if (subc_idx == -1) - sc = pcb_subclist_first(&data->subc); - else - sc = pcb_subclist_nth(&data->subc, subc_idx); - - if (sc == NULL) - return -1; - - return io_lihata_dump_subc(ctx, f, sc); -} - int io_lihata_write_subcs_head(pcb_plug_io_t *ctx, void **udata, FILE *f, int lib, long num_subcs) { if ((lib) || (num_subcs != 1)) {