[Libreoffice-commits] core.git: Branch 'feature/cmis' - ucb/source

Cao Cuong Ngo cao.cuong.ngo at gmail.com
Wed Jul 17 00:26:19 PDT 2013


 ucb/source/ucp/cmis/cmis_repo_content.cxx |    6 ------
 1 file changed, 6 deletions(-)

New commits:
commit 358a8ffde16c30d364317459757ed93c246df5ce
Author: Cao Cuong Ngo <cao.cuong.ngo at gmail.com>
Date:   Wed Jul 17 09:25:21 2013 +0200

    CMIS Google Drive get repositories
    
    We don't have to create a session just to get a dummy repository.
    
    Change-Id: I0193d499d5a45aaa6fa7d1d18301e70ab550518d

diff --git a/ucb/source/ucp/cmis/cmis_repo_content.cxx b/ucb/source/ucp/cmis/cmis_repo_content.cxx
index e0fd7af..2cd4668 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( ) ),


More information about the Libreoffice-commits mailing list