Kaydet (Commit) 956cb1f7 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedmethods desktop

Change-Id: I78d4cd362bebde05e5bec55eff5e38603cb3f813
üst 290465b0
......@@ -112,8 +112,6 @@ class Desktop : public Application
return m_aBootstrapStatus;
}
static bool isCrashReporterEnabled();
// first-start (ever) related methods
static bool CheckExtensionDependencies();
......@@ -133,13 +131,11 @@ class Desktop : public Application
static void CreateTemporaryDirectory();
static void RemoveTemporaryDirectory();
bool InitializeInstallation( const OUString& rAppFilename );
static bool InitializeConfiguration();
static void FlushConfiguration();
static bool InitializeQuickstartMode( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
static void HandleBootstrapPathErrors( ::utl::Bootstrap::Status, const OUString& aMsg );
void StartSetup( const OUString& aParameters );
// Create a error message depending on bootstrap failure code and an optional file url
static OUString CreateErrorMsgString( utl::Bootstrap::FailureCode nFailureCode,
......
......@@ -41,11 +41,6 @@ namespace desktop
class DispatchWatcherHashMap : public std::unordered_map< OUString, sal_Int32, OUStringHash, std::equal_to< OUString > >
{
public:
inline void free()
{
DispatchWatcherHashMap().swap( *this ); // get rid of reserved capacity
}
};
class DispatchWatcher : public ::cppu::WeakImplHelper1< ::com::sun::star::frame::XDispatchResultListener >
......
......@@ -73,7 +73,6 @@ public:
{}
virtual ~SelectedPackage();
::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage> getPackage() const { return m_xPackage; }
private:
SelectedPackage(SelectedPackage &) SAL_DELETED_FUNCTION;
......
......@@ -1190,8 +1190,6 @@ UpdateRequiredDialog::UpdateRequiredDialog(vcl::Window *pParent, TheExtensionMan
, m_bProgressChanged(false)
, m_bStartProgress(false)
, m_bStopProgress(false)
, m_bUpdateWarning(false)
, m_bDisableWarning(false)
, m_bHasLockedEntries(false)
, m_nProgress(0)
, m_pManager(pManager)
......
......@@ -191,8 +191,6 @@ class UpdateRequiredDialog : public ModalDialog,
bool m_bProgressChanged;
bool m_bStartProgress;
bool m_bStopProgress;
bool m_bUpdateWarning;
bool m_bDisableWarning;
bool m_bHasLockedEntries;
long m_nProgress;
Idle m_aIdle;
......@@ -230,15 +228,9 @@ public:
virtual long addPackageToList( const ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage > &,
bool bLicenseMissing = false ) SAL_OVERRIDE;
bool enablePackage( const ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage > &xPackage, bool bEnable );
bool updatePackage( const ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage > &xPackage );
virtual void prepareChecking() SAL_OVERRIDE;
virtual void checkEntries() SAL_OVERRIDE;
::com::sun::star::uno::Sequence< OUString > raiseAddPicker();
bool installForAllUsers( bool &bInstallForAll ) const;
bool installExtensionWarn( const OUString &rExtensionURL ) const;
};
......
......@@ -158,7 +158,6 @@ class ExtensionBox_Impl : public ::svt::IExtensionListBox
long GetTotalHeight() const;
void SetupScrollBar();
void DrawRow(vcl::RenderContext& rRenderContext, const Rectangle& rRect, const TEntry_Impl& rEntry);
bool HandleTabKey( bool bReverse );
bool HandleCursorKey( sal_uInt16 nKeyCode );
bool FindEntryPos( const TEntry_Impl& rEntry, long nStart, long nEnd, long &nFound );
void DeleteRemoved();
......@@ -205,10 +204,8 @@ public:
void prepareChecking();
void checkEntries();
TheExtensionManager* getExtensionManager() const { return m_pManager; }
void setExtensionManager(TheExtensionManager* pManager) { m_pManager = pManager; }
//These functions are used for automatic testing
/** @return The count of the entries in the list box. */
......
......@@ -508,8 +508,6 @@ UpdateDialog::UpdateDialog(
m_thread(
new UpdateDialog::Thread(
context, *this, vExtensionList)),
m_nFirstLineDelta(0),
m_nOneLineMissing(0),
m_nLastID(1),
m_bModified( false )
// TODO: check!
......
......@@ -158,7 +158,6 @@ private:
bool showDescription( ::com::sun::star::uno::Reference<
::com::sun::star::xml::dom::XNode > const & aUpdateInfo);
bool showDescription( const OUString& rDescription);
bool isReadOnly( const ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage > &xPackage ) const;
DECL_LINK(selectionHandler, void *);
DECL_LINK(allHandler, void *);
......@@ -206,8 +205,6 @@ private:
Point m_aFirstLinePos;
Size m_aFirstLineSize;
long m_nFirstLineDelta;
long m_nOneLineMissing;
sal_uInt16 m_nLastID;
bool m_bModified;
};
......
......@@ -47,9 +47,6 @@ public:
explicit ExtensionManager( css::uno::Reference< css::uno::XComponentContext >const& xContext);
virtual ~ExtensionManager();
static css::uno::Sequence< OUString > getServiceNames();
static OUString getImplName();
void check();
void fireModified();
......
......@@ -336,19 +336,6 @@ protected:
static void deleteTempFolder(
OUString const & folderUrl);
OUString getSharedRegistrationDataURL(
css::uno::Reference<css::deployment::XPackage> const & extension,
css::uno::Reference<css::deployment::XPackage> const & item);
/* The backends must implement this function, which is called
from XPackageRegistry::packageRemoved (also implemented here).
This ensure that the backends clean up their registration data
when an extension was removed.
*/
// virtual void deleteDbEntry( OUString const & url) = 0;
public:
struct StrRegisteringPackage : public ::dp_misc::StaticResourceString<
StrRegisteringPackage, RID_STR_REGISTERING_PACKAGE> {};
......
......@@ -237,7 +237,6 @@ public:
~MigrationImpl();
bool initializeMigration();
bool doMigration();
OUString getOldVersionName();
};
}
......
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