[Sugar-devel] [PATCH sugar-toolkit-gtk3] Datastore: remove deprecated API

Gonzalo Odiard gonzalo at laptop.org
Wed Jan 18 14:48:50 EST 2012


Reviewed-by: Gonzalo Odiard <gonzalo at laptop.org>

On Wed, Jan 11, 2012 at 2:56 PM, Simon Schampijer <simon at schampijer.de>wrote:

> This API is not in use anywhere in the shell and has
> been deprecated for quite some time.
>
> Signed-off-by: Simon Schampijer <simon at laptop.org>
> ---
>  src/sugar3/datastore/datastore.py |   41
> -------------------------------------
>  1 files changed, 0 insertions(+), 41 deletions(-)
>
> diff --git a/src/sugar3/datastore/datastore.py
> b/src/sugar3/datastore/datastore.py
> index c7a741e..33100e8 100644
> --- a/src/sugar3/datastore/datastore.py
> +++ b/src/sugar3/datastore/datastore.py
> @@ -495,47 +495,6 @@ def copy(ds_object, mount_point):
>     write(new_ds_object)
>
>
> -def mount(uri, options, timeout=-1):
> -    """Deprecated. API private to the shell. Mount a device.
> -
> -    Keyword arguments:
> -    uri -- identifier of the device
> -    options -- mount options
> -    timeout -- dbus timeout for the caller to wait (default -1)
> -
> -    Return: empty string
> -
> -    """
> -    return _get_data_store().mount(uri, options, timeout=timeout)
> -
> -
> -def unmount(mount_point_id):
> -    """Deprecated. API private to the shell.
> -
> -    Keyword arguments:
> -    mount_point_id -- id of the mount point
> -
> -    Note: API private to the shell.
> -
> -    """
> -    _get_data_store().unmount(mount_point_id)
> -
> -
> -def mounts():
> -    """Deprecated. Returns the mount point of the datastore. We get mount
> -    points through gio now. API private to the shell.
> -
> -    Return: datastore mount point
> -
> -    """
> -    return _get_data_store().mounts()
> -
> -
> -def complete_indexing():
> -    """Deprecated. API private to the shell."""
> -    logging.warning('The method complete_indexing has been deprecated.')
> -
> -
>  def get_unique_values(key):
>     """Retrieve an array of unique values for a field.
>
> --
> 1.7.7.5
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120118/79a5d9cd/attachment.html>


More information about the Sugar-devel mailing list