Remove the ABI compatability ast_channel_alloc(). It is no longer needed.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 2 May 2013 19:06:53 +0000 (19:06 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 2 May 2013 19:06:53 +0000 (19:06 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@387482 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index 577ab03..9ed7e5f 100644 (file)
@@ -11253,40 +11253,6 @@ int ast_channel_get_cc_agent_type(struct ast_channel *chan, char *agent_type, si
        return 0;
 }
 
-/* DO NOT PUT ADDITIONAL FUNCTIONS BELOW THIS BOUNDARY
- *
- * ONLY FUNCTIONS FOR PROVIDING BACKWARDS ABI COMPATIBILITY BELONG HERE
- *
- */
-
-/* Provide binary compatibility for modules that call ast_channel_alloc() directly;
- * newly compiled modules will call __ast_channel_alloc() via the macros in channel.h
- */
-#undef ast_channel_alloc
-struct ast_channel __attribute__((format(printf, 10, 11)))
-       *ast_channel_alloc(int needqueue, int state, const char *cid_num,
-                          const char *cid_name, const char *acctcode,
-                          const char *exten, const char *context,
-                          const char *linkedid, const int amaflag,
-                          const char *name_fmt, ...);
-struct ast_channel *ast_channel_alloc(int needqueue, int state, const char *cid_num,
-                                     const char *cid_name, const char *acctcode,
-                                     const char *exten, const char *context,
-                                     const char *linkedid, const int amaflag,
-                                     const char *name_fmt, ...)
-{
-       va_list ap;
-       struct ast_channel *result;
-
-
-       va_start(ap, name_fmt);
-       result = __ast_channel_alloc_ap(needqueue, state, cid_num, cid_name, acctcode, exten, context,
-                                       linkedid, amaflag, __FILE__, __LINE__, __FUNCTION__, name_fmt, ap);
-       va_end(ap);
-
-       return result;
-}
-
 void ast_channel_unlink(struct ast_channel *chan)
 {
        ao2_unlink(channels, chan);