[Libreoffice-commits] .: sd/source unusedcode.easy
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Oct 5 23:31:48 PDT 2012
sd/source/ui/remotecontrol/Communicator.cxx | 4 --
sd/source/ui/remotecontrol/Communicator.hxx | 1
sd/source/ui/remotecontrol/ImagePreparer.cxx | 48 ---------------------------
sd/source/ui/remotecontrol/ImagePreparer.hxx | 1
unusedcode.easy | 2 -
5 files changed, 56 deletions(-)
New commits:
commit 27fafb78f1d9dd59d0c4615eaf39f5e80db13753
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sat Oct 6 08:30:33 2012 +0200
Remove 2 other unused methods
Change-Id: I54b00335020676ada0bcb09c45410e31fe74b59c
diff --git a/sd/source/ui/remotecontrol/Communicator.cxx b/sd/source/ui/remotecontrol/Communicator.cxx
index 02a39d8..0d1beb6 100644
--- a/sd/source/ui/remotecontrol/Communicator.cxx
+++ b/sd/source/ui/remotecontrol/Communicator.cxx
@@ -123,8 +123,4 @@ void Communicator::disposeListener()
}
}
-Transmitter* Communicator::getTransmitter()
-{
- return pTransmitter;
-}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sd/source/ui/remotecontrol/Communicator.hxx b/sd/source/ui/remotecontrol/Communicator.hxx
index d7ad796..81b9e67 100644
--- a/sd/source/ui/remotecontrol/Communicator.hxx
+++ b/sd/source/ui/remotecontrol/Communicator.hxx
@@ -45,7 +45,6 @@ namespace sd
Communicator( BufferedStreamSocket *pSocket );
~Communicator();
- Transmitter* getTransmitter();
void presentationStarted( const css::uno::Reference<
css::presentation::XSlideShowController > &rController );
void informListenerDestroyed();
diff --git a/sd/source/ui/remotecontrol/ImagePreparer.cxx b/sd/source/ui/remotecontrol/ImagePreparer.cxx
index 0ea6302..e5423d3 100644
--- a/sd/source/ui/remotecontrol/ImagePreparer.cxx
+++ b/sd/source/ui/remotecontrol/ImagePreparer.cxx
@@ -85,7 +85,6 @@ void ImagePreparer::execute()
}
sendNotes( i );
}
-// notesToHtml( 0 );
mRef.clear();
}
@@ -220,53 +219,6 @@ void ImagePreparer::sendNotes( sal_uInt32 aSlideNumber )
}
sal_Bool ExportTo( uno::Reference< drawing::XDrawPage>& aNotesPage, String aUrl );
-OString ImagePreparer::notesToHtml( sal_uInt32 aSlideNumber )
-{
- OString aRet("");
-
- OUString aFileURL;
- FileBase::createTempFile( 0, 0, &aFileURL );
- fprintf( stderr, "%s", OUStringToOString( aFileURL, RTL_TEXTENCODING_UTF8).getStr() );
-
- if ( !xController->isRunning() )
- return "";
-
-
-
-
- // Get the page
- uno::Reference< drawing::XDrawPage > xNotesPage;
- uno::Reference< drawing::XDrawPage > xSourceDoc(
- xController->getSlideByIndex( aSlideNumber ),
- uno::UNO_QUERY_THROW );
-
- uno::Reference<presentation::XPresentationPage> xPresentationPage(
- xSourceDoc, UNO_QUERY);
- if (xPresentationPage.is())
- xNotesPage = uno::Reference< drawing::XDrawPage >(
- xPresentationPage->getNotesPage(), uno::UNO_QUERY_THROW );
- else
- return "";
-
-
- ExportTo( xNotesPage, aFileURL );
-
- // FIXME: error handling.
-
-// File aFile( aFileURL );
-// aFile.open(0);
-// sal_uInt64 aRead;
-// rSize = 0;
-// aFile.getSize( rSize );
-// uno::Sequence<sal_Int8> aContents( rSize );
-
-// aFile.read( aContents.getArray(), rSize, aRead );
-// aFile.close();
-// File::remove( aFileURL );
-// return aContents;
-
- return aRet;
-}
// Code copied from sdremote/source/presenter/PresenterNotesView.cxx
OString ImagePreparer::prepareNotes( sal_uInt32 aSlideNumber )
diff --git a/sd/source/ui/remotecontrol/ImagePreparer.hxx b/sd/source/ui/remotecontrol/ImagePreparer.hxx
index 2adf228..130eeb6 100644
--- a/sd/source/ui/remotecontrol/ImagePreparer.hxx
+++ b/sd/source/ui/remotecontrol/ImagePreparer.hxx
@@ -45,7 +45,6 @@ private:
void sendNotes( sal_uInt32 aSlideNumber );
rtl::OString prepareNotes( sal_uInt32 aSlideNumber );
- rtl::OString notesToHtml( sal_uInt32 aSlideNumber );
};
}
diff --git a/unusedcode.easy b/unusedcode.easy
index f31e7ef..1defdee 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -87,8 +87,6 @@ oox::ole::AxFormPageModel::AxFormPageModel()
oox::ole::AxMultiPageModel::AxMultiPageModel()
oox::ole::AxTabStripModel::AxTabStripModel()
oox::xls::BiffDrawingObjectBase::BiffDrawingObjectBase(oox::xls::WorksheetHelper const&)
-sd::Communicator::getTransmitter()
-sd::ImagePreparer::notesToHtml(unsigned int)
sd::LeftDrawPaneShell::RegisterInterface(SfxModule*)
sd::LeftImpressPaneShell::RegisterInterface(SfxModule*)
sd::ToolPanelPaneShell::RegisterInterface(SfxModule*)
More information about the Libreoffice-commits
mailing list