From cfe2f67f86d5ab2fb6fb1b1929d4de26be5566fa Mon Sep 17 00:00:00 2001
From: Andrea Zagli <azagli@libero.it>
Date: Thu, 18 Dec 2014 16:14:10 +0100
Subject: [PATCH] Removed Confi::path_move.

---
 src/libconfi.c | 40 ----------------------------------------
 src/libconfi.h |  4 ----
 2 files changed, 44 deletions(-)

diff --git a/src/libconfi.c b/src/libconfi.c
index 421860f..ca4118b 100644
--- a/src/libconfi.c
+++ b/src/libconfi.c
@@ -453,46 +453,6 @@ confi_path_set_value (Confi *confi, const gchar *path, const gchar *value)
 	return ret;
 }
 
-/**
- * confi_path_move:
- * @confi: a #Confi object.
- * @path: the key's path to move.
- * @parent: the path where add the key.
- *
- */
-gboolean
-confi_path_move (Confi *confi, const gchar *path, const gchar *parent)
-{
-	GdaDataModel *dmPath;
-	GdaDataModel *dmParent;
-
-	gboolean ret;
-	gchar *sql;
-
-	ConfiPrivate *priv = CONFI_GET_PRIVATE (confi);
-
-	//dmPath = path_get_data_model (confi, path_normalize (confi, path));
-	if (dmPath == NULL) return FALSE;
-
-	//dmParent = path_get_data_model (confi, path_normalize (confi, parent));
-	if (dmParent == NULL) return FALSE;
-
-	ret = TRUE;
-	sql = g_strdup_printf ("UPDATE %cvalues%c "
-	                              "SET id_parent = %d "
-	                              "WHERE id_configs = %d "
-	                              "AND id = %d",
-	                              priv->chrquot, priv->chrquot,
-	                              gdaex_data_model_get_field_value_integer_at (dmParent, 0, "id"),
-	                              priv->id_config,
-	                              gdaex_data_model_get_field_value_integer_at (dmPath, 0, "id"));
-
-	ret = (gdaex_execute (priv->gdaex, sql) >= 0);
-	g_free (sql);
-
-	return ret;
-}
-
 /**
  * confi_path_get_confi_key:
  * @confi: a #Confi object.
diff --git a/src/libconfi.h b/src/libconfi.h
index 4d43f97..0955a8b 100644
--- a/src/libconfi.h
+++ b/src/libconfi.h
@@ -82,10 +82,6 @@ gboolean confi_path_set_value (Confi *confi,
                                const gchar *path,
                                const gchar *value);
 
-gboolean confi_path_move (Confi *confi,
-                          const gchar *path,
-                          const gchar *parent);
-
 ConfiKey *confi_path_get_confi_key (Confi *confi,
                                     const gchar *path);
 
-- 
2.49.0