This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] varobj: Cleanup dead code


> I also moved the function comment to the header file to comply with
> today's guideline, even though the rest of the file does not respect it
> (yet).

FTR: There is actually no real agreement on this, and because each
approach has its advantages, short of a royal edict, we'll probably
continue accepting both forms.

> gdb/ChangeLog:
> 
> 	* varobj.h (varobj_delete): Remove dellist parameter, update and
> 	move documentation here.
> 	* varobj.c (struct cpstack, cppush, cppop): Remove.
> 	(delete_variable): Remove resultp (first) parameter.
> 	(delete_variable_1): Likewise.
> 	(varobj_delete): Remove dellist parameter and unused code.
> 	(update_dynamic_varobj_children): Adjust varobj_delete call.
> 	(update_type_if_necessary): Likewise.
> 	(varobj_set_visualizer): Likewise.
> 	(varobj_update): Likewise.
> 	(value_of_root): Likewise.
> 	(varobj_invalidate_iter): Likewise.
> 	* mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.

Looks good to me.

Thanks for doing that cleanup.
-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]