From 429dc676b19ff8dbb5864e3c436de1b214e538b0 Mon Sep 17 00:00:00 2001 From: John Koleszar Date: Thu, 17 Mar 2011 17:07:59 -0400 Subject: Increase static linkage, remove unused functions A large number of functions were defined with external linkage, even though they were only used from within one file. This patch changes their linkage to static and removes the vp8_ prefix from their names, which should make it more obvious to the reader that the function is contained within the current translation unit. Functions that were not referenced were removed. These symbols were identified by: $ nm -A libvpx.a | sort -k3 | uniq -c -f2 | grep ' [A-Z] ' \ | sort | grep '^ *1 ' Change-Id: I59609f58ab65312012c047036ae1e0634f795779 --- vp8/common/alloccommon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vp8/common/alloccommon.c') diff --git a/vp8/common/alloccommon.c b/vp8/common/alloccommon.c index ceb9e525f..edef36094 100644 --- a/vp8/common/alloccommon.c +++ b/vp8/common/alloccommon.c @@ -20,7 +20,7 @@ extern void vp8_init_scan_order_mask(); -void vp8_update_mode_info_border(MODE_INFO *mi, int rows, int cols) +static void update_mode_info_border(MODE_INFO *mi, int rows, int cols) { int i; vpx_memset(mi - cols - 2, 0, sizeof(MODE_INFO) * (cols + 1)); @@ -119,7 +119,7 @@ int vp8_alloc_frame_buffers(VP8_COMMON *oci, int width, int height) return 1; } - vp8_update_mode_info_border(oci->mi, oci->mb_rows, oci->mb_cols); + update_mode_info_border(oci->mi, oci->mb_rows, oci->mb_cols); return 0; } -- cgit v1.2.3