diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-07-24 13:08:07 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-07-24 21:03:07 -0400 |
commit | c549e1e836182e586a42e5ecb398db6faf0a2cbe (patch) | |
tree | 52f187bcedc7e8cf9db39fe844ab7136171d4318 | |
parent | f15b1d084eb026342e8d0440d5bfb3ac8f23f30c (diff) |
Unused methods.
Change-Id: Iafd1895d96df32c312f937db479e04abd7cb7038
-rw-r--r-- | framework/source/inc/loadenv/loadenv.hxx | 8 | ||||
-rw-r--r-- | framework/source/loadenv/loadenv.cxx | 51 |
2 files changed, 0 insertions, 59 deletions
diff --git a/framework/source/inc/loadenv/loadenv.hxx b/framework/source/inc/loadenv/loadenv.hxx index 75269e3c3f09..4c72e6b36acf 100644 --- a/framework/source/inc/loadenv/loadenv.hxx +++ b/framework/source/inc/loadenv/loadenv.hxx @@ -373,14 +373,6 @@ class LoadEnv : private ThreadHelpBase //_______________________________________ /** TODO document me ... */ - void cancelLoading(); - - //_______________________________________ - /** TODO document me ... */ - css::uno::Reference< css::frame::XFrame > getTarget() const; - - //_______________________________________ - /** TODO document me ... */ css::uno::Reference< css::lang::XComponent > getTargetComponent() const; diff --git a/framework/source/loadenv/loadenv.cxx b/framework/source/loadenv/loadenv.cxx index 35b85c5e6164..79224efd433b 100644 --- a/framework/source/loadenv/loadenv.cxx +++ b/framework/source/loadenv/loadenv.cxx @@ -463,57 +463,6 @@ sal_Bool LoadEnv::waitWhileLoading(sal_uInt32 nTimeout) // <- SAFE ---------------------------------- } - -void LoadEnv::cancelLoading() -{ - // PARTIAL(!) SAFE -> ------------------------------ - ReadGuard aReadLock(m_aLock); - - // Still running? Might waitWhileLoading() - // runned into the timeout! - if (m_xAsynchronousJob.is()) - { - // try to cancel it ... if its an asynchronous frame loader - css::uno::Reference< css::frame::XFrameLoader > xAsyncLoader(m_xAsynchronousJob, css::uno::UNO_QUERY); - if (xAsyncLoader.is()) - { - aReadLock.unlock(); - // <- BREAK SAFE ------------------------------ - xAsyncLoader->cancel(); - // <- RESTART SAFE ---------------------------- - aReadLock.lock(); - /* Attention: - After returning from any cancel/dispose call, neither the frame nor weself - may be called back. Because only we can cancel this job, we already know - the result! => Thats why its not usefull nor neccessary to wait for any - asynchronous listener notification. - */ - m_bLoaded = sal_False; - m_xAsynchronousJob.clear(); - } - // or may be its a content handler? Such handler can't be cancelled in its running - // operation :-( And we can't deregister us there again :-( - // => The only chance is an exception :-) - else - throw LoadEnvException(LoadEnvException::ID_STILL_RUNNING); - } - - impl_reactForLoadingState(); - - aReadLock.unlock(); - // <- PARTIAL(!) SAFE ------------------------------ -} - - -css::uno::Reference< css::frame::XFrame > LoadEnv::getTarget() const -{ - // SAFE -> - ReadGuard aReadLock(m_aLock); - return m_xTargetFrame; - // <- SAFE -} - - css::uno::Reference< css::lang::XComponent > LoadEnv::getTargetComponent() const { // SAFE -> |