Skip to content

Commit

Permalink
Merge pull request #1076 from mslehto/deadcode
Browse files Browse the repository at this point in the history
core: dead code and ser string removal
  • Loading branch information
miconda committed Apr 19, 2017
2 parents bfe2cec + 0df66ff commit c13ffc8
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 55 deletions.
2 changes: 0 additions & 2 deletions src/core/config.h
Expand Up @@ -35,8 +35,6 @@
#ifndef config_h
#define config_h

#include "types.h"

#define SIP_PORT 5060 /*!< default SIP port if none specified */
#define SIPS_PORT 5061 /*!< default SIP port for TLS if none specified */

Expand Down
13 changes: 0 additions & 13 deletions src/core/globals.h
Expand Up @@ -32,7 +32,6 @@
#ifndef globals_h
#define globals_h

#include "types.h"
#include "ip_addr.h"
#include "str.h"
#include "poll_types.h"
Expand Down Expand Up @@ -113,7 +112,6 @@ extern int dont_daemonize;
extern int check_via;
extern int phone2tel;
extern int received_dns;
/* extern int process_no; */
extern int child_rank;
extern int sip_warning;
extern int server_signature;
Expand Down Expand Up @@ -144,12 +142,6 @@ extern int auto_bind_ipv6;
extern int tos;
extern int pmtu_discovery;

/*
* debug & log_stderr moved to dprint.h*/

/* extern process_bm_t process_bit; */
/* extern int *pids; -moved to pt.h */

extern int cfg_errors;
extern int cfg_warnings;
extern unsigned int msg_no;
Expand All @@ -160,11 +152,6 @@ extern unsigned long pkg_mem_size;
/* AVP configuration */
extern char *avp_db_url; /* db url used by user preferences (AVPs) */

/* moved to pt.h
extern int *pids;
extern int process_no;
*/

extern int reply_to_via;

extern int is_main;
Expand Down
2 changes: 1 addition & 1 deletion src/core/route.c
Expand Up @@ -993,7 +993,7 @@ int fix_actions(struct action* a)
si=find_si(&ip, ((struct socket_id*)t->val[0].u.data)->port,
((struct socket_id*)t->val[0].u.data)->proto);
if (si==0){
LM_ERR("bad force_send_socket argument: %s:%d (ser doesn't listen on it)\n",
LM_ERR("bad force_send_socket argument: %s:%d (" NAME " doesn't listen on it)\n",
((struct socket_id*)t->val[0].u.data)->addr_lst->name,
((struct socket_id*)t->val[0].u.data)->port);
ret = E_BAD_ADDRESS;
Expand Down
32 changes: 0 additions & 32 deletions src/core/types.h

This file was deleted.

6 changes: 0 additions & 6 deletions src/main.c
Expand Up @@ -471,10 +471,6 @@ int child_rank = 0;
/* how much to wait for children to terminate, before taking extreme measures*/
int ser_kill_timeout=DEFAULT_SER_KILL_TIMEOUT;

/* process_bm_t process_bit = 0; */
#ifdef ROUTE_SRV
#endif

/* cfg parsing */
int cfg_errors=0;
int cfg_warnings=0;
Expand Down Expand Up @@ -1364,7 +1360,6 @@ int main_loop(void)
if (pid==0){
/* child */
/* timer!*/
/* process_bit = 0; */
if (real_time&2)
set_rt_prio(rt_timer2_prio, rt_timer2_policy);

Expand All @@ -1383,7 +1378,6 @@ int main_loop(void)
if (pid==0){
/* child */
/* timer!*/
/* process_bit = 0; */
if (real_time&1)
set_rt_prio(rt_timer1_prio, rt_timer1_policy);
if (arm_timer()<0) goto error;
Expand Down
1 change: 0 additions & 1 deletion src/modules/tm/h_table.h
Expand Up @@ -46,7 +46,6 @@

#include "../../core/clist.h"
#include "../../core/parser/msg_parser.h"
#include "../../core/types.h"
#include "../../core/md5utils.h"
#include "../../core/usr_avp.h"
#ifdef WITH_XAVP
Expand Down

0 comments on commit c13ffc8

Please sign in to comment.