diff --git a/channels/chan_oss.c b/channels/chan_oss.c
index 74e05669263c29bb01faf8b606424b17f04837fe..3e68628e75113bd00963056227f89b62d5b564e8 100644
--- a/channels/chan_oss.c
+++ b/channels/chan_oss.c
@@ -1100,13 +1100,6 @@ static char *console_autoanswer(struct ast_cli_entry *e, int cmd, struct ast_cli
 	return CLI_SUCCESS;
 }
 
-static char *autoanswer_complete(const char *line, const char *word, int pos, int state)
-{
-	static char *choices[] = { "on", "off", NULL };
-
-	return (pos != 3) ? NULL : ast_cli_complete(word, choices, state);
-}
-
 /*
  * answer command from the console
  */