[Kimchi-devel] [PATCH] Remove unused listDeepScanIsos function

Royce Lv lvroyce at linux.vnet.ibm.com
Mon May 26 02:44:17 UTC 2014


Reviewed-by: Royce Lv<lvroyce at linux.vnet.ibm.com>

On 2014年05月24日 03:15, Rodrigo Trujillo wrote:
> The function listDeepScanIsos is not being used in the Kimchi code. It
> was replaced by stepListDeepScanIsos.
> ---
>   ui/js/src/kimchi.api.js | 24 ------------------------
>   1 file changed, 24 deletions(-)
>
> diff --git a/ui/js/src/kimchi.api.js b/ui/js/src/kimchi.api.js
> index 7d85fdf..5f3bf00 100644
> --- a/ui/js/src/kimchi.api.js
> +++ b/ui/js/src/kimchi.api.js
> @@ -481,30 +481,6 @@ var kimchi = {
>           return deepScanHandler;
>       },
>
> -    listDeepScanIsos : function(suc, err) {
> -        var isoPool = 'iso' + new Date().getTime();
> -        kimchi.createStoragePool({
> -            name : isoPool,
> -            type : 'kimchi-iso',
> -            path : '/'
> -        }, function(result) {
> -            var taskId = result.task_id;
> -            function monitorTask() {
> -                kimchi.getTask(taskId, function(result) {
> -                    var status = result.status;
> -                    if (status === "finished") {
> -                        kimchi.listStorageVolumes(isoPool, suc, err);
> -                    } else if (status === "running") {
> -                        setTimeout(monitorTask, 50);
> -                    } else if (status === "failed") {
> -                        err(result.message);
> -                    }
> -                }, err);
> -            }
> -            monitorTask();
> -        }, err);
> -    },
> -
>       getTask : function(taskId, suc, err) {
>           kimchi.requestJSON({
>               url : kimchi.url + 'tasks/' + encodeURIComponent(taskId),




More information about the Kimchi-devel mailing list