mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
Remove dead code from features.c; refactor pickup code into pickup.c
This patch does the following: * It moves the pickup code out of features.c and into pickup.c * It removes the vast majority of dead code out of features.c. In particular, this includes the parking code. (issue ASTERISK-22134) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -43,7 +43,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
#include "asterisk/module.h"
|
||||
#include "asterisk/lock.h"
|
||||
#include "asterisk/app.h"
|
||||
#include "asterisk/features.h"
|
||||
#include "asterisk/pickup.h"
|
||||
#include "asterisk/manager.h"
|
||||
#include "asterisk/callerid.h"
|
||||
|
||||
@@ -305,7 +305,7 @@ static int pickup_exec(struct ast_channel *chan, const char *data)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Find channel for pick up specified by partial channel name */
|
||||
/* Find channel for pick up specified by partial channel name */
|
||||
static int find_by_part(void *obj, void *arg, void *data, int flags)
|
||||
{
|
||||
struct ast_channel *target = obj;/*!< Potential pickup target */
|
||||
@@ -323,7 +323,7 @@ static int find_by_part(void *obj, void *arg, void *data, int flags)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Attempt to pick up specified by partial channel name */
|
||||
/* Attempt to pick up specified by partial channel name */
|
||||
static int pickup_by_part(struct ast_channel *chan, const char *part)
|
||||
{
|
||||
struct ast_channel *target;/*!< Potential pickup target */
|
||||
|
Reference in New Issue
Block a user