removed edge_clone()

This commit is contained in:
thorkill 2015-07-06 01:49:03 +02:00
parent eda9f0ea8e
commit b7820caf03
2 changed files with 0 additions and 19 deletions

View file

@ -118,24 +118,6 @@ void edge_del(edge_t *e) {
splay_delete(e->from->edge_tree, e);
}
edge_t *clone_edge(edge_t *e) {
edge_t *v;
v = new_edge();
v->from = e->from;
v->to = e->to;
memcpy(&v->address, &e->address, sizeof(sockaddr_t));
memcpy(&v->local_address, &e->local_address, sizeof(sockaddr_t));
v->options = e->options;
v->weight = e->weight;
v->avg_rtt = e->avg_rtt;
v->connection = e->connection;
v->reverse = e->reverse;
return v;
}
edge_t *lookup_edge(node_t *from, node_t *to) {

View file

@ -51,7 +51,6 @@ extern void free_edge_tree(splay_tree_t *);
extern void edge_add(edge_t *);
extern void edge_del(edge_t *);
extern edge_t *lookup_edge(struct node_t *, struct node_t *);
extern edge_t *clone_edge(edge_t *);
extern bool dump_edges(struct connection_t *);
#endif /* __TINC_EDGE_H__ */