remove paging device from chan_skinny.
authorMichiel van Baak <michiel@vanbaak.info>
Thu, 26 Jun 2008 23:14:08 +0000 (23:14 +0000)
committerMichiel van Baak <michiel@vanbaak.info>
Thu, 26 Jun 2008 23:14:08 +0000 (23:14 +0000)
This has never been used, and noone could give us info about what
it is used for.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@125593 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_skinny.c

index a7ebf8c..8b0a613 100644 (file)
@@ -1109,10 +1109,6 @@ AST_MUTEX_DEFINE_STATIC(netlock);
 AST_MUTEX_DEFINE_STATIC(sessionlock);
 /* Protect the device list */
 AST_MUTEX_DEFINE_STATIC(devicelock);
-#if 0
-/* Protect the paging device list */
-AST_MUTEX_DEFINE_STATIC(pagingdevicelock);
-#endif
 
 /* This is the thread for the monitor which checks for input on the channels
    which are not currently in use. */
@@ -1256,13 +1252,6 @@ static struct skinny_device {
        struct skinny_line *activeline;
 } *devices = NULL;
 
-struct skinny_paging_device {
-       char name[80];
-       char id[16];
-       struct skinny_device ** devices;
-       struct skinny_paging_device *next;
-};
-
 static struct skinnysession {
        pthread_t t;
        ast_mutex_t lock;
@@ -3003,13 +2992,6 @@ static struct ast_cli_entry cli_skinny[] = {
        AST_CLI_DEFINE(handle_skinny_reset, "Reset Skinny device(s)"),
 };
 
-#if 0
-static struct skinny_paging_device *build_paging_device(const char *cat, struct ast_variable *v)
-{
-       return NULL;
-}
-#endif
-
 static struct skinny_device *build_device(const char *cat, struct ast_variable *v)
 {
        struct skinny_device *d;
@@ -6338,12 +6320,6 @@ static int reload_config(void)
        while(cat) {
                if (!strcasecmp(cat, "general")) {
                        /* Nothing to do */
-#if 0
-               } else if (!strncasecmp(cat, "paging-", 7)) {
-                       p = build_paging_device(cat, ast_variable_browse(cfg, cat));
-                       if (p) {
-                       }
-#endif
                } else {
                        d = build_device(cat, ast_variable_browse(cfg, cat));
                        if (d) {