diff options
author | Cao Cuong Ngo <cao.cuong.ngo@gmail.com> | 2013-07-17 09:25:21 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2013-09-02 13:51:52 +0200 |
commit | cd2702d5374b38696755d0e41b3a7817ccecc848 (patch) | |
tree | 8bfe12135eb6369cce371280a87424b7818cab76 /ucb | |
parent | a281090de6f574d51af7a5d58c6a13ed30ba1055 (diff) |
CMIS Google Drive get repositories
We don't have to create a session just to get a dummy repository.
Change-Id: I0193d499d5a45aaa6fa7d1d18301e70ab550518d
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/cmis/cmis_repo_content.cxx | 6 |
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 ae302a90d1ee..95e91040fec7 100644 --- a/ucb/source/ucp/cmis/cmis_repo_content.cxx +++ b/ucb/source/ucp/cmis/cmis_repo_content.cxx @@ -29,7 +29,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 ) @@ -142,11 +141,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( ) ), |