From 9d5160cc4233d588c86cd2d8d87e7040b7117306 Mon Sep 17 00:00:00 2001
From: Michiel van Baak <michiel@vanbaak.info>
Date: Thu, 10 Jul 2008 16:21:16 +0000
Subject: [PATCH] Remove deprecated 'show parkedcalls' CLI command

(closes issue #13038)
Reported by: eliel
Patches:
      finish.deprecate.patch uploaded by eliel (license 64)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@129581 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 main/features.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/main/features.c b/main/features.c
index f150f560fe..5550f81aa3 100644
--- a/main/features.c
+++ b/main/features.c
@@ -3547,20 +3547,10 @@ static char *handle_parkedcalls(struct ast_cli_entry *e, int cmd, struct ast_cli
 	return CLI_SUCCESS;
 }
 
-static char *handle_parkedcalls_deprecated(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
-{
-	char *res = handle_parkedcalls(e, cmd, a);
-	if (cmd == CLI_INIT)
-		e->command = "show parkedcalls";
-	return res;
-}
-
-static struct ast_cli_entry cli_show_parkedcalls_deprecated = AST_CLI_DEFINE(handle_parkedcalls_deprecated, "List currently parked calls.");
-
 static struct ast_cli_entry cli_features[] = {
 	AST_CLI_DEFINE(handle_feature_show, "Lists configured features"),
 	AST_CLI_DEFINE(handle_features_reload, "Reloads configured features"),
-	AST_CLI_DEFINE(handle_parkedcalls, "List currently parked calls", .deprecate_cmd = &cli_show_parkedcalls_deprecated),
+	AST_CLI_DEFINE(handle_parkedcalls, "List currently parked calls"),
 };
 
 /*! 
-- 
GitLab