Index: trunk/src/route_style.c =================================================================== --- trunk/src/route_style.c (revision 34387) +++ trunk/src/route_style.c (revision 34388) @@ -44,23 +44,6 @@ static const char rst_cookie[] = "core route style"; -/* Serializes the route style list */ -char *pcb_route_string_make(vtroutestyle_t *styles) -{ - gds_t str; - int i; - - gds_init(&str); - for (i = 0; i < vtroutestyle_len(styles); ++i) { - rnd_append_printf(&str, "%s,%mc,%mc,%mc,%mc", styles->array[i].name, - styles->array[i].Thick, styles->array[i].Diameter, - styles->array[i].Hole, styles->array[i].Clearance); - if (i > 0) - gds_append(&str, ':'); - } - return str.array; /* this is the only allocation made, return this and don't uninit */ -} - void pcb_use_route_style(pcb_route_style_t * rst) { rnd_conf_set_design("design/line_thickness", "%$mS", rst->Thick); Index: trunk/src/route_style.h =================================================================== --- trunk/src/route_style.h (revision 34387) +++ trunk/src/route_style.h (revision 34388) @@ -4,7 +4,7 @@ * pcb-rnd, interactive printed circuit board design * (this file is based on PCB, interactive printed circuit board design) * Copyright (C) 1994,1995,1996, 2004 Thomas Nau - * Copyright (C) 2016 Tibor 'Igor2' Palinkas + * Copyright (C) 2016,2021 Tibor 'Igor2' Palinkas * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,8 +29,6 @@ #include "vtroutestyle.h" -char *pcb_route_string_make(vtroutestyle_t *styles); - /* Set design configuration (the pen we draw with) to a given route style */ void pcb_use_route_style(pcb_route_style_t *rst);