mpUpdater has been proven unused
...by 435d6d50c3
"loplugin:constantparam in sfx2"
Change-Id: I28db5cc1fd6506ba9e374d28b40e5d0cf7d676bd
This commit is contained in:
@@ -148,7 +148,6 @@ struct NamePair_Impl
|
|||||||
OUString maLongName;
|
OUString maLongName;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Updater_Impl;
|
|
||||||
class DocTemplates_EntryData_Impl;
|
class DocTemplates_EntryData_Impl;
|
||||||
class GroupData_Impl;
|
class GroupData_Impl;
|
||||||
|
|
||||||
@@ -186,7 +185,6 @@ class SfxDocTplService_Impl
|
|||||||
std::vector< NamePair_Impl* > maNames;
|
std::vector< NamePair_Impl* > maNames;
|
||||||
lang::Locale maLocale;
|
lang::Locale maLocale;
|
||||||
Content maRootContent;
|
Content maRootContent;
|
||||||
Updater_Impl* mpUpdater;
|
|
||||||
bool mbIsInitialized : 1;
|
bool mbIsInitialized : 1;
|
||||||
bool mbLocaleSet : 1;
|
bool mbLocaleSet : 1;
|
||||||
|
|
||||||
@@ -304,21 +302,6 @@ public:
|
|||||||
|
|
||||||
void update();
|
void update();
|
||||||
void doUpdate();
|
void doUpdate();
|
||||||
void finished() { mpUpdater = nullptr; }
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
class Updater_Impl : public ::osl::Thread
|
|
||||||
{
|
|
||||||
private:
|
|
||||||
SfxDocTplService_Impl *mpDocTemplates;
|
|
||||||
|
|
||||||
public:
|
|
||||||
explicit Updater_Impl( SfxDocTplService_Impl* pTemplates );
|
|
||||||
virtual ~Updater_Impl();
|
|
||||||
|
|
||||||
virtual void SAL_CALL run() override;
|
|
||||||
virtual void SAL_CALL onTerminated() override;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -1097,7 +1080,6 @@ SfxDocTplService_Impl::SfxDocTplService_Impl( const uno::Reference< XComponentCo
|
|||||||
: maRelocator(xContext)
|
: maRelocator(xContext)
|
||||||
{
|
{
|
||||||
mxContext = xContext;
|
mxContext = xContext;
|
||||||
mpUpdater = nullptr;
|
|
||||||
mbIsInitialized = false;
|
mbIsInitialized = false;
|
||||||
mbLocaleSet = false;
|
mbLocaleSet = false;
|
||||||
}
|
}
|
||||||
@@ -1107,13 +1089,6 @@ SfxDocTplService_Impl::~SfxDocTplService_Impl()
|
|||||||
{
|
{
|
||||||
::osl::MutexGuard aGuard( maMutex );
|
::osl::MutexGuard aGuard( maMutex );
|
||||||
|
|
||||||
if ( mpUpdater )
|
|
||||||
{
|
|
||||||
mpUpdater->terminate();
|
|
||||||
mpUpdater->join();
|
|
||||||
delete mpUpdater;
|
|
||||||
}
|
|
||||||
|
|
||||||
for ( size_t i = 0, n = maNames.size(); i < n; ++i )
|
for ( size_t i = 0, n = maNames.size(); i < n; ++i )
|
||||||
delete maNames[ i ];
|
delete maNames[ i ];
|
||||||
maNames.clear();
|
maNames.clear();
|
||||||
@@ -2375,33 +2350,6 @@ void SAL_CALL SfxDocTplService::update()
|
|||||||
pImp->update();
|
pImp->update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Updater_Impl::Updater_Impl( SfxDocTplService_Impl* pTemplates )
|
|
||||||
{
|
|
||||||
mpDocTemplates = pTemplates;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Updater_Impl::~Updater_Impl()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void SAL_CALL Updater_Impl::run()
|
|
||||||
{
|
|
||||||
osl_setThreadName("Updater_Impl");
|
|
||||||
|
|
||||||
mpDocTemplates->doUpdate();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void SAL_CALL Updater_Impl::onTerminated()
|
|
||||||
{
|
|
||||||
mpDocTemplates->finished();
|
|
||||||
delete this;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
WaitWindow_Impl::WaitWindow_Impl() : WorkWindow(nullptr, WB_BORDER | WB_3DLOOK)
|
WaitWindow_Impl::WaitWindow_Impl() : WorkWindow(nullptr, WB_BORDER | WB_3DLOOK)
|
||||||
{
|
{
|
||||||
Rectangle aRect = Rectangle(0, 0, 300, 30000);
|
Rectangle aRect = Rectangle(0, 0, 300, 30000);
|
||||||
|
Reference in New Issue
Block a user