Diff between e890a54b4841fec22a0971cb226dd5776b4f7e96 and 0a3fb1e263a7310314bbfd7816f07410f735c7b4

Changed Files

File Additions Deletions Status
doc/settings-storage.txt +0 -3 modified
src/adapter.c +0 -4 modified

Full Patch

diff --git a/doc/settings-storage.txt b/doc/settings-storage.txt
index e55b371..a3b58e6 100644
--- a/doc/settings-storage.txt
+++ b/doc/settings-storage.txt
@@ -69,9 +69,6 @@ Settings file contains one [General] group with adapter info like:
 
   Discoverable		Boolean		Discoverability of the adapter
 
-  Pairable		Boolean		Can the adapter accept pairing
-					request ?
-
   PairableTimeout	Integer		How long to stay in pairable mode
 					before going back to non-pairable.
 					The value is in seconds.
diff --git a/src/adapter.c b/src/adapter.c
index b7afe99..d996257 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -3271,7 +3271,6 @@ static void convert_config(struct btd_adapter *adapter, const char *filename,
 	char address[18];
 	char str[MAX_NAME_LENGTH + 1];
 	char config_path[PATH_MAX + 1];
-	gboolean flag;
 	int timeout;
 	uint8_t mode;
 	char *data;
@@ -3281,9 +3280,6 @@ static void convert_config(struct btd_adapter *adapter, const char *filename,
 	snprintf(config_path, PATH_MAX, STORAGEDIR "/%s/config", address);
 	config_path[PATH_MAX] = '\0';
 
-	if (read_device_pairable(&adapter->bdaddr, &flag) == 0)
-		g_key_file_set_boolean(key_file, "General", "Pairable", flag);
-
 	if (read_pairable_timeout(address, &timeout) == 0)
 		g_key_file_set_integer(key_file, "General",
 						"PairableTimeout", timeout);