[Kimchi-devel] [PATCH] Remove unused listDeepScanIsos function
Sheldon
shaohef at linux.vnet.ibm.com
Mon May 26 12:59:47 UTC 2014
Reviewed-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
Tested-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
On 05/24/2014 03:15 AM, 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),
--
Thanks and best regards!
Sheldon Feng(冯少合)<shaohef at linux.vnet.ibm.com>
IBM Linux Technology Center
More information about the Kimchi-devel
mailing list