summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCao Cuong Ngo <cao.cuong.ngo@gmail.com>2013-07-17 09:25:21 +0200
committerCao Cuong Ngo <cao.cuong.ngo@gmail.com>2013-07-17 09:25:21 +0200
commit358a8ffde16c30d364317459757ed93c246df5ce (patch)
treebedcf7e149c3ee38938eac03d5d25893267d68b7
parent9020aef661d87f846b3d436d00a7118b69a45ddc (diff)
CMIS Google Drive get repositories
We don't have to create a session just to get a dummy repository. Change-Id: I0193d499d5a45aaa6fa7d1d18301e70ab550518d
-rw-r--r--ucb/source/ucp/cmis/cmis_repo_content.cxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/ucb/source/ucp/cmis/cmis_repo_content.cxx b/ucb/source/ucp/cmis/cmis_repo_content.cxx
index e0fd7af51244..2cd46685149d 100644
--- a/ucb/source/ucp/cmis/cmis_repo_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_repo_content.cxx
@@ -32,7 +32,6 @@
#include "cmis_provider.hxx"
#include "cmis_repo_content.hxx"
#include "cmis_resultset.hxx"
-#include "cmis_oauth2_providers.hxx"
#define OUSTR_TO_STDSTR(s) string( OUStringToOString( s, RTL_TEXTENCODING_UTF8 ).getStr() )
#define STD_TO_OUSTR( str ) OUString( str.c_str(), str.length( ), RTL_TEXTENCODING_UTF8 )
@@ -145,11 +144,6 @@ namespace cmis
{
// Create a session to get repositories
libcmis::OAuth2DataPtr oauth2Data = NULL;
- if ( m_aURL.getBindingUrl( ) == GDRIVE_BASE_URL )
- oauth2Data.reset( new libcmis::OAuth2Data(
- GDRIVE_AUTH_URL, GDRIVE_TOKEN_URL,
- GDRIVE_SCOPE, GDRIVE_REDIRECT_URI,
- GDRIVE_CLIENT_ID, GDRIVE_CLIENT_SECRET ) );
libcmis::Session* session = libcmis::SessionFactory::createSession(
OUSTR_TO_STDSTR( m_aURL.getBindingUrl( ) ),