[xdebug-dev] xdebug xdebug/xdebug.c xdebug/xdebug_handler_dbgp.c - Removing some unused vars.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Thu, 28 Dec 2006 23:59:07 +0100

Date: Thu Dec 28 23:59:07 CET 2006
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- Removing some unused vars.

Modified files:
           xdebug/xdebug.c (version: 1.366)
           xdebug/xdebug_handler_dbgp.c (version: 1.114)

[FILE: /xdebug/xdebug.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.365
retrieving revision 1.366
diff -u -r1.365 -r1.366
--- xdebug/xdebug.c:1.365 Thu Dec 28 21:58:37 2006 GMT
+++ xdebug/xdebug.c Thu Dec 28 21:59:06 2006 GMT
@@ -1902,7 +1902,6 @@
 
         /* Printing vars */
         for (j = 0; j < i->varc; j++) {
- char *tmp_varname;
                 char *tmp_value;
 
                 if (c) {
@@ -1910,10 +1909,7 @@
                 } else {
                         c = 1;
                 }
-/*
- tmp_varname = i->var[j].name ? xdebug_sprintf("$%s = ", i->var[j].name) : xdstrdup("");
- xdebug_str_add(&str, tmp_varname, 1);
-*/
+
                 tmp_value = get_zval_value(i->var[j].addr, 0, NULL);
                 if (tmp_value) {
                         xdebug_str_add(&str, tmp_value, 1);
@@ -2334,7 +2330,6 @@
 PHP_FUNCTION(xdebug_get_declared_vars)
 {
         xdebug_llist_element *le;
- int j;
         function_stack_entry *i;
 
         array_init(return_value);
@@ -2346,16 +2341,6 @@
         if (i->used_vars) {
                 xdebug_hash_apply(i->used_vars, (void *) return_value, attach_used_var_names);
         }
- /* Add params */
-#if 0
- if (i->var) {
- for (j = 0; j < i->varc; j++) {
- if (i->var[j].name) {
- add_next_index_string(return_value, i->var[j].name, 1);
- }
- }
- }
-#endif
 }
 /* }}} */
 

[FILE: /xdebug/xdebug_handler_dbgp.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.113
retrieving revision 1.114
diff -u -r1.113 -r1.114
--- xdebug/xdebug_handler_dbgp.c:1.113 Thu Dec 28 21:58:37 2006 GMT
+++ xdebug/xdebug_handler_dbgp.c Thu Dec 28 21:59:07 2006 GMT
@@ -1635,7 +1635,6 @@
         char *eval_string;
         zval ret_zval;
         function_stack_entry *fse;
- int old_max_data;
         xdebug_var_export_options *options = (xdebug_var_export_options*) context->options;
         zval *symbol;
         XDEBUG_STR_SWITCH_DECL;
@@ -2177,7 +2176,7 @@
 
 char *xdebug_dbgp_get_revision(void)
 {
- return "$Revision: 1.113 $";
+ return "$Revision: 1.114 $";
 }
 
 int xdebug_dbgp_cmdloop(xdebug_con *context TSRMLS_DC)
Received on Thu Dec 28 2006 - 23:59:12 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST