1.1 --- a/src/pEp_internal.h Sat Dec 09 13:06:29 2017 +0100
1.2 +++ b/src/pEp_internal.h Wed Dec 13 11:42:23 2017 +0100
1.3 @@ -124,7 +124,6 @@
1.4 sqlite3_stmt *log;
1.5 sqlite3_stmt *trustword;
1.6 sqlite3_stmt *get_identity;
1.7 - sqlite3_stmt *get_identity_without_fpr;
1.8 sqlite3_stmt *replace_identities_fpr;
1.9 sqlite3_stmt *set_person;
1.10 sqlite3_stmt *set_device_group;
1.11 @@ -153,6 +152,8 @@
1.12 sqlite3_stmt *own_key_is_listed;
1.13 sqlite3_stmt *own_identities_retrieve;
1.14 sqlite3_stmt *own_keys_retrieve;
1.15 + sqlite3_stmt *get_user_default_key;
1.16 +
1.17 sqlite3_stmt *get_own_userid;
1.18
1.19 // sqlite3_stmt *set_own_key;
1.20 @@ -343,13 +344,6 @@
1.21 return comparison == 0;
1.22 }
1.23
1.24 -static inline bool _identity_me(
1.25 - pEp_identity * identity
1.26 - )
1.27 -{
1.28 - return identity->me || (identity->user_id && strcmp(identity->user_id, PEP_OWN_USERID) == 0);
1.29 -}
1.30 -
1.31 // size is the length of the bytestr that's coming in. This is really only intended
1.32 // for comparing two full strings. If charstr's length is different from bytestr_size,
1.33 // we'll return a non-zero value.