Kaydet (Commit) 00bb8141 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedfields in ucb/

Change-Id: Ic9ca044aa2465a197397bec6632e1a5aa5fe7110
üst acc4acb9
......@@ -230,7 +230,6 @@ UniversalContentBroker::UniversalContentBroker(
const Reference< css::uno::XComponentContext >& xContext )
: m_xContext( xContext ),
m_pDisposeEventListeners( nullptr ),
m_nInitCount( 0 ), //@@@ see initialize() method
m_nCommandId( 0 )
{
OSL_ENSURE( m_xContext.is(),
......
......@@ -210,7 +210,6 @@ private:
ProviderMap_Impl m_aProviders;
osl::Mutex m_aMutex;
cppu::OInterfaceContainerHelper* m_pDisposeEventListeners;
oslInterlockedCount m_nInitCount; //@@@ see initialize() method
sal_Int32 m_nCommandId;
};
......
......@@ -86,13 +86,10 @@ namespace ucb { namespace ucp { namespace ext
ResultList m_aResults;
::rtl::Reference< Content > m_xContent;
Reference< XComponentContext > m_xContext;
sal_Int32 m_nOpenMode;
DataSupplier_Impl( const Reference< XComponentContext >& rxContext, const ::rtl::Reference< Content >& i_rContent,
const sal_Int32 i_nOpenMode )
DataSupplier_Impl( const Reference< XComponentContext >& rxContext, const ::rtl::Reference< Content >& i_rContent )
:m_xContent( i_rContent )
,m_xContext( rxContext )
,m_nOpenMode( i_nOpenMode )
{
}
~DataSupplier_Impl();
......@@ -126,9 +123,8 @@ namespace ucb { namespace ucp { namespace ext
DataSupplier::DataSupplier( const Reference< XComponentContext >& rxContext,
const ::rtl::Reference< Content >& i_rContent,
const sal_Int32 i_nOpenMode )
:m_pImpl( new DataSupplier_Impl( rxContext, i_rContent, i_nOpenMode ) )
const ::rtl::Reference< Content >& i_rContent )
:m_pImpl( new DataSupplier_Impl( rxContext, i_rContent ) )
{
}
......
......@@ -42,8 +42,7 @@ namespace ucb { namespace ucp { namespace ext
public:
DataSupplier(
const css::uno::Reference< css::uno::XComponentContext >& rxContext,
const rtl::Reference< Content >& rContent,
const sal_Int32 nOpenMode
const rtl::Reference< Content >& rContent
);
void fetchData();
......
......@@ -63,8 +63,7 @@ namespace ucb { namespace ucp { namespace ext
{
::rtl::Reference< DataSupplier > pDataSupplier( new DataSupplier(
m_xContext,
m_xContent,
m_aCommand.Mode
m_xContent
) );
m_xResultSet1 = new ::ucbhelper::ResultSet(
m_xContext,
......
......@@ -238,13 +238,11 @@ public:
ResultSetFactoryI(const Reference<XComponentContext >& rxContext,
const Reference<XContentProvider >& xProvider,
sal_Int32 nOpenMode,
const Sequence<Property>& seq,
const Sequence<NumberedSortingInfo>& seqSort,
const std::vector<FTPDirentry>& dirvec)
: m_xContext(rxContext),
m_xProvider(xProvider),
m_nOpenMode(nOpenMode),
m_seq(seq),
m_seqSort(seqSort),
m_dirvec(dirvec)
......@@ -255,7 +253,6 @@ public:
{
return new ResultSetI(m_xContext,
m_xProvider,
m_nOpenMode,
m_seq,
m_seqSort,
m_dirvec);
......@@ -265,7 +262,6 @@ public:
Reference< XComponentContext > m_xContext;
Reference< XContentProvider > m_xProvider;
sal_Int32 m_nOpenMode;
Sequence< Property > m_seq;
Sequence< NumberedSortingInfo > m_seqSort;
std::vector<FTPDirentry> m_dirvec;
......@@ -564,7 +560,6 @@ Any SAL_CALL FTPContent::execute( const Command& aCommand,
Environment,
new ResultSetFactoryI(m_xContext,
m_xProvider.get(),
aOpenCommand.Mode,
aOpenCommand.Properties,
aOpenCommand.SortingInfo,
resvec));
......
......@@ -40,11 +40,10 @@ using namespace com::sun::star::sdbc;
ResultSetI::ResultSetI(const Reference<XComponentContext>& rxContext,
const Reference<XContentProvider>& xProvider,
sal_Int32 nOpenMode,
const Sequence<Property>& seqProp,
const Sequence< NumberedSortingInfo >& seqSort,
const std::vector<FTPDirentry>& dirvec)
: ResultSetBase(rxContext,xProvider,nOpenMode,seqProp,seqSort)
: ResultSetBase(rxContext,xProvider,seqProp,seqSort)
{
for( size_t i = 0; i < dirvec.size(); ++i)
m_aPath.push_back(dirvec[i].m_aURL);
......
......@@ -37,7 +37,6 @@ namespace ftp {
ResultSetI(
const css::uno::Reference< css::uno::XComponentContext>& rxContext,
const css::uno::Reference< css::ucb::XContentProvider>& xProvider,
sal_Int32 nOpenMode,
const css::uno::Sequence< css::beans::Property >& seq,
const css::uno::Sequence< css::ucb::NumberedSortingInfo >& seqSort,
const std::vector<FTPDirentry>& dirvec);
......
......@@ -33,14 +33,12 @@ using namespace com::sun::star;
ResultSetBase::ResultSetBase(
const uno::Reference< uno::XComponentContext >& rxContext,
const uno::Reference< ucb::XContentProvider >& xProvider,
sal_Int32 nOpenMode,
const uno::Sequence< beans::Property >& seq,
const uno::Sequence< ucb::NumberedSortingInfo >& seqSort )
: m_xContext( rxContext ),
m_xProvider( xProvider ),
m_nRow( -1 ),
m_nWasNull( true ),
m_nOpenMode( nOpenMode ),
m_bRowCountFinal( true ),
m_sProperty( seq ),
m_sSortingInfo( seqSort ),
......
......@@ -52,7 +52,6 @@ namespace ftp {
ResultSetBase(const css::uno::Reference< css::uno::XComponentContext >& rxContext,
const css::uno::Reference< css::ucb::XContentProvider >& xProvider,
sal_Int32 nOpenMode,
const css::uno::Sequence< css::beans::Property >& seq,
const css::uno::Sequence< css::ucb::NumberedSortingInfo >& seqSort);
......@@ -523,7 +522,6 @@ namespace ftp {
css::ucb::XContentProvider > m_xProvider;
sal_Int32 m_nRow;
bool m_nWasNull;
sal_Int32 m_nOpenMode;
bool m_bRowCountFinal;
typedef std::vector< css::uno::Reference<
......
......@@ -57,9 +57,6 @@ namespace ftp {
virtual ~FTPInputStreamContainer() {}
css::uno::Reference< css::io::XInputStream> operator()();
private:
FTPInputStream* m_out;
};
}
......
......@@ -79,16 +79,14 @@ struct DataSupplier_Impl
rtl::Reference< Content > m_xContent;
uno::Reference< uno::XComponentContext > m_xContext;
uno::Reference< container::XEnumeration > m_xFolderEnum;
sal_Int32 m_nOpenMode;
bool m_bCountFinal;
bool m_bThrowException;
DataSupplier_Impl(
const uno::Reference< uno::XComponentContext >& rxContext,
const rtl::Reference< Content >& rContent,
sal_Int32 nOpenMode )
const rtl::Reference< Content >& rContent )
: m_xContent( rContent ), m_xContext( rxContext ),
m_xFolderEnum( rContent->getIterator() ), m_nOpenMode( nOpenMode ),
m_xFolderEnum( rContent->getIterator() ),
m_bCountFinal( !m_xFolderEnum.is() ), m_bThrowException( m_bCountFinal )
{}
~DataSupplier_Impl();
......@@ -119,9 +117,8 @@ DataSupplier_Impl::~DataSupplier_Impl()
DataSupplier::DataSupplier(
const uno::Reference< uno::XComponentContext >& rxContext,
const rtl::Reference< Content >& rContent,
sal_Int32 nOpenMode )
: m_pImpl( new DataSupplier_Impl( rxContext, rContent, nOpenMode ) )
const rtl::Reference< Content >& rContent )
: m_pImpl( new DataSupplier_Impl( rxContext, rContent ) )
{
}
......
......@@ -35,8 +35,7 @@ class DataSupplier : public ::ucbhelper::ResultSetDataSupplier
public:
DataSupplier( const css::uno::Reference< css::uno::XComponentContext >& rxContext,
const rtl::Reference< Content >& rContent,
sal_Int32 nOpenMode );
const rtl::Reference< Content >& rContent );
virtual ~DataSupplier();
virtual OUString queryContentIdentifierString( sal_uInt32 nIndex ) override;
......
......@@ -65,8 +65,7 @@ void DynamicResultSet::initStatic()
= new ::ucbhelper::ResultSet( m_xContext,
m_aCommand.Properties,
new DataSupplier( m_xContext,
m_xContent,
m_aCommand.Mode ),
m_xContent ),
m_xEnv );
}
......@@ -77,8 +76,7 @@ void DynamicResultSet::initDynamic()
= new ::ucbhelper::ResultSet( m_xContext,
m_aCommand.Properties,
new DataSupplier( m_xContext,
m_xContent,
m_aCommand.Mode ),
m_xContent ),
m_xEnv );
m_xResultSet2 = m_xResultSet1;
}
......
......@@ -74,17 +74,15 @@ struct DataSupplier_Impl
ResultList m_aResults;
rtl::Reference< Content > m_xContent;
uno::Reference< uno::XComponentContext > m_xContext;
uno::Sequence< OUString > * m_pNamesOfChildren;
sal_Int32 m_nOpenMode;
uno::Sequence< OUString > * m_pNamesOfChildren;
bool m_bCountFinal;
bool m_bThrowException;
DataSupplier_Impl(
const uno::Reference< uno::XComponentContext >& rxContext,
const rtl::Reference< Content >& rContent,
sal_Int32 nOpenMode )
const rtl::Reference< Content >& rContent )
: m_xContent( rContent ), m_xContext( rxContext ),
m_pNamesOfChildren( nullptr ), m_nOpenMode( nOpenMode ),
m_pNamesOfChildren( nullptr ),
m_bCountFinal( false ), m_bThrowException( false )
{}
~DataSupplier_Impl();
......@@ -110,9 +108,8 @@ DataSupplier_Impl::~DataSupplier_Impl()
// DataSupplier Implementation.
ResultSetDataSupplier::ResultSetDataSupplier(
const uno::Reference< uno::XComponentContext >& rxContext,
const rtl::Reference< Content >& rContent,
sal_Int32 nOpenMode )
: m_pImpl( new DataSupplier_Impl( rxContext, rContent, nOpenMode ) )
const rtl::Reference< Content >& rContent )
: m_pImpl( new DataSupplier_Impl( rxContext, rContent ) )
{
}
......
......@@ -41,8 +41,7 @@ private:
public:
ResultSetDataSupplier(
const css::uno::Reference< css::uno::XComponentContext >& rxContext,
const rtl::Reference< Content >& rContent,
sal_Int32 nOpenMode = css::ucb::OpenMode::ALL );
const rtl::Reference< Content >& rContent );
virtual ~ResultSetDataSupplier();
virtual OUString queryContentIdentifierString( sal_uInt32 nIndex ) override;
......
......@@ -67,8 +67,7 @@ void DynamicResultSet::initStatic()
m_xContext,
m_aCommand.Properties,
new ResultSetDataSupplier( m_xContext,
m_xContent,
m_aCommand.Mode ) );
m_xContent ) );
}
......@@ -79,8 +78,7 @@ void DynamicResultSet::initDynamic()
m_xContext,
m_aCommand.Properties,
new ResultSetDataSupplier( m_xContext,
m_xContent,
m_aCommand.Mode ) );
m_xContent ) );
m_xResultSet2 = m_xResultSet1;
}
......
......@@ -58,10 +58,7 @@ struct DAVResource
struct DAVResourceInfo
{
OUString uri;
std::vector < OUString > properties;
explicit DAVResourceInfo( const OUString & inUri ) : uri( inUri ) {}
};
} // namespace webdav_ucp
......
......@@ -35,36 +35,6 @@
namespace webdav_ucp
{
/* RFC 2518
15.1 Class 1
A class 1 compliant resource MUST meet all "MUST" requirements in all
sections of this document.
Class 1 compliant resources MUST return, at minimum, the value "1" in
the DAV header on all responses to the OPTIONS method.
15.2 Class 2
A class 2 compliant resource MUST meet all class 1 requirements and
support the LOCK method, the supportedlock property, the
lockdiscovery property, the Time-Out response header and the Lock-
Token request header. A class "2" compliant resource SHOULD also
support the Time-Out request header and the owner XML element.
Class 2 compliant resources MUST return, at minimum, the values "1"
and "2" in the DAV header on all responses to the OPTIONS method.
*/
struct DAVCapabilities
{
bool class1;
bool class2;
bool executable; // supports "executable" property (introduced by mod_dav)
DAVCapabilities() : class1( false ), class2( false ), executable( false ) {}
};
enum Depth { DAVZERO = 0, DAVONE = 1, DAVINFINITY = -1 };
......
......@@ -220,13 +220,12 @@ extern "C" int NPFR_propnames_iter( void* userdata,
}
extern "C" void NPFR_propnames_results( void* userdata,
const ne_uri* uri,
const ne_uri* /*uri*/,
const NeonPropFindResultSet* results )
{
// @@@ href is not the uri! DAVResourceInfo ctor wants uri!
// Create entry for the resource.
DAVResourceInfo theResource(
OStringToOUString( uri->path, RTL_TEXTENCODING_UTF8 ) );
DAVResourceInfo theResource;
// Fill entry.
ne_propset_iterate( results, NPFR_propnames_iter, &theResource );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment