Yes it will give you the same results.
On 17/12/2013 1:16 AM, "rldhont" <notifications@github.com> wrote:

> In python/plugins/processing/tools/dataobjects.py:
>
> > @@ -96,7 +104,11 @@ def getAllLayers():
> >
> >
> >  def getTables():
> > -    layers = interface.iface.legendInterface().layers()
> > +    layers = list()
> > +    if not interface.iface == None :
>
> I don't know why legendInterface is used and if we can remove it.
> @NathanW2 <https://github.com/NathanW2> do you think it will be the same
> to use QgsMapLayerRegistry ?
> @volaya <https://github.com/volaya> are you agree ?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/qgis/QGIS/pull/1031/files#r8368880>
> .
>