From e5287627d957b092d11ba8031e4d30dc7f79cbd5 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Thu, 3 Mar 2016 15:43:38 +0000 Subject: Dropbox: fallback to v1 api to support shorten urls git-svn-id: http://svn.miranda-ng.org/main/trunk@16406 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dropbox/src/dropbox.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'plugins/Dropbox/src/dropbox.cpp') diff --git a/plugins/Dropbox/src/dropbox.cpp b/plugins/Dropbox/src/dropbox.cpp index a794e3bb17..fa31010600 100644 --- a/plugins/Dropbox/src/dropbox.cpp +++ b/plugins/Dropbox/src/dropbox.cpp @@ -94,19 +94,6 @@ void CDropbox::RequestAccountInfo(void *p) if (!name.empty()) { db_set_s(hContact, MODULE, "FirstName", name.at("given_name").as_string().c_str()); db_set_s(hContact, MODULE, "LastName", name.at("surname").as_string().c_str()); - /*JSONNode display_name = root.at("display_name"); - if (!display_name.empty()) { - CMString tszDisplayName(display_name.as_mstring()); - int pos = tszDisplayName.ReverseFind(' '); - if (pos != -1) { - db_set_ts(hContact, MODULE, "LastName", tszDisplayName.Mid(pos + 1)); - db_set_ts(hContact, MODULE, "FirstName", tszDisplayName.Left(pos)); - } - else { - db_set_ts(hContact, MODULE, "FirstName", tszDisplayName); - db_unset(hContact, MODULE, "LastName"); - } - }*/ } JSONNode country = root.at("country"); -- cgit v1.2.3