Index: trunk/src/plug_io.c =================================================================== --- trunk/src/plug_io.c (revision 23892) +++ trunk/src/plug_io.c (revision 23893) @@ -620,34 +620,6 @@ return fp; } -/* opens a file for saving connection data */ -FILE *pcb_open_connection_file(void) -{ - char *fname; - FILE *fp; - static char *default_file = NULL; - pcb_bool result; /* not used */ - - /* CheckAndOpenFile deals with the case where fname already exists */ - fname = pcb_gui->fileselect("Save Connection Data As ...", - "Choose a file to save all connection data to.", default_file, ".net", NULL, "connection_data", 0, NULL); - if (fname == NULL) - return NULL; - - if (default_file != NULL) { - free(default_file); - default_file = NULL; - } - - if (fname && *fname) - default_file = pcb_strdup(fname); - - fp = pcb_check_and_open_file(fname, pcb_true, pcb_false, &result, NULL); - free(fname); - - return fp; -} - int pcb_save_buffer_elements(const char *Filename, const char *fmt) { int result; Index: trunk/src/plug_io.h =================================================================== --- trunk/src/plug_io.h (revision 23892) +++ trunk/src/plug_io.h (revision 23893) @@ -115,7 +115,6 @@ /********** common function used to be part of file.[ch] and friends **********/ FILE *pcb_check_and_open_file(const char *, pcb_bool, pcb_bool, pcb_bool *, pcb_bool *); -FILE *pcb_open_connection_file(void); int pcb_save_pcb(const char *, const char *fmt); #define PCB_INHIBIT_BOARD_CHANGED 0x20 int pcb_load_pcb(const char *name, const char *fmt, pcb_bool, int how); /* how: 0=normal pcb; 1=default.pcb, 2=misc (do not load settings) | 0x10: ignore missing file, | PCB_INHIBIT_BOARD_CHANGED: do not send a board changed event */