Remove dead code

John (J5) Palmieri johnp at redhat.com
Thu Oct 27 09:28:14 PDT 2005


Looks good.  Commit away.

On Thu, 2005-10-27 at 12:41 +0100, Ross Burton wrote:
> Hi,
> 
> Tiny patch to remove dead code (I assume gcc is already stripping it
> out, but better safe than sorry):
> 
> Index: dbus/dbus-marshal-header.c
> ===================================================================
> RCS file: /cvs/dbus/dbus/dbus/dbus-marshal-header.c,v
> retrieving revision 1.14
> diff -u -r1.14 dbus-marshal-header.c
> --- dbus/dbus-marshal-header.c  16 Jun 2005 04:27:45 -0000      1.14
> +++ dbus/dbus-marshal-header.c  27 Oct 2005 11:39:49 -0000
> @@ -153,10 +167,6 @@
>                          int             field_code,
>                          DBusTypeReader *variant_reader)
>  {
> -  int variant_type;
> -
> -  variant_type = _dbus_type_reader_get_current_type (variant_reader);
> -
>    header->fields[field_code].value_pos =
>      _dbus_type_reader_get_value_pos (variant_reader);
> 
> 
> Ross
-- 
John (J5) Palmieri <johnp at redhat.com>



More information about the dbus mailing list