4
0
Эх сурвалжийг харах

remove unused functions and variable

* tools/corosync-fplay.c (sync_printer_nada): Remove function.
* tools/corosync-objctl.c (get_child_name): Remove function.
* test/evsverify.c (msg): Remove unused variable.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1983 fd59a12c-fef9-0310-b244-a6a79926bd2f
Jim Meyering 17 жил өмнө
parent
commit
748cf03858

+ 0 - 2
test/evsverify.c

@@ -114,8 +114,6 @@ struct evs_group groups[3] = {
 	{ "key3" }
 };
 
-static struct my_msg msg;
-
 static unsigned char buffer[200000];
 int main (void)
 {

+ 0 - 4
tools/corosync-fplay.c

@@ -149,10 +149,6 @@ static void sync_printer_section_receive (void **record)
 		print_string_len (section_name, *section_name_len));
 }
 
-static void sync_printer_nada (void **record)
-{
-	printf ("nada\n");
-}
 static void sync_printer_confchg_fn (void **record)
 {
 	unsigned int i;

+ 0 - 17
tools/corosync-objctl.c

@@ -203,23 +203,6 @@ static cs_error_t validate_name(char * obj_name_pt)
 		return CS_ERR_INVALID_PARAM;
 }
 
-static void get_child_name(const char * name_pt, char * child_name)
-{
-	char * tmp;
-	char str_copy[OBJ_NAME_SIZE];
-
-	strcpy(str_copy, name_pt);
-
-	/* first remove the value (it could be a file path */
-	tmp = strchr(str_copy, '=');
-	if (tmp != NULL) *tmp = '\0';
-
-	/* truncate the  */
-	tmp = strrchr(str_copy, SEPERATOR);
-	if (tmp == NULL) tmp = str_copy;
-	strcpy(child_name, tmp+1);
-}
-
 static void get_parent_name(const char * name_pt, char * parent_name)
 {
 	char * tmp;