aboutsummaryrefslogtreecommitdiffstats
path: root/src/ralloc.c
diff options
context:
space:
mode:
authorJuanma Barranquero2010-07-23 19:50:14 +0200
committerJuanma Barranquero2010-07-23 19:50:14 +0200
commit33ac04147b6c42796f4c0c16d6aeb261033c171e (patch)
tree41a8f653f89ff485760e3fe495bc78fe24e4a967 /src/ralloc.c
parent225d5e9e16070f908c22e1b40bf9db29fdf17c20 (diff)
downloademacs-33ac04147b6c42796f4c0c16d6aeb261033c171e.tar.gz
emacs-33ac04147b6c42796f4c0c16d6aeb261033c171e.zip
Remove unused static functions.
* alloc.c (free_float) * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse) * frame.c (delete_frame_handler) * ralloc.c (reorder_bloc) * w32menu.c (menubar_id_to_frame, add_left_right_boundary)
Diffstat (limited to 'src/ralloc.c')
-rw-r--r--src/ralloc.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/ralloc.c b/src/ralloc.c
index 0a2b156e393..f0299873f54 100644
--- a/src/ralloc.c
+++ b/src/ralloc.c
@@ -519,35 +519,6 @@ relocate_blocs (bloc_ptr bloc, heap_ptr heap, POINTER address)
519 519
520 return 1; 520 return 1;
521} 521}
522
523/* Reorder the bloc BLOC to go before bloc BEFORE in the doubly linked list.
524 This is necessary if we put the memory of space of BLOC
525 before that of BEFORE. */
526
527static void
528reorder_bloc (bloc_ptr bloc, bloc_ptr before)
529{
530 bloc_ptr prev, next;
531
532 /* Splice BLOC out from where it is. */
533 prev = bloc->prev;
534 next = bloc->next;
535
536 if (prev)
537 prev->next = next;
538 if (next)
539 next->prev = prev;
540
541 /* Splice it in before BEFORE. */
542 prev = before->prev;
543
544 if (prev)
545 prev->next = bloc;
546 bloc->prev = prev;
547
548 before->prev = bloc;
549 bloc->next = before;
550}
551 522
552/* Update the records of which heaps contain which blocs, starting 523/* Update the records of which heaps contain which blocs, starting
553 with heap HEAP and bloc BLOC. */ 524 with heap HEAP and bloc BLOC. */