[Libreoffice-commits] .: dtrans/test sax/source svtools/source
Thomas Arnhold
tarnhold at kemper.freedesktop.org
Mon Feb 7 14:06:02 PST 2011
dtrans/test/win32/dnd/targetlistener.cxx | 15 ---------------
sax/source/fastparser/fastparser.cxx | 1 -
sax/source/tools/converter.cxx | 2 --
svtools/source/table/tablecontrol.cxx | 1 -
4 files changed, 19 deletions(-)
New commits:
commit 195e11ae09df2c1189e77c6609f9cada2d8d816e
Author: Thomas Arnhold <thomas at arnhold.org>
Date: Mon Feb 7 23:05:53 2011 +0100
Remove some dead code
diff --git a/dtrans/test/win32/dnd/targetlistener.cxx b/dtrans/test/win32/dnd/targetlistener.cxx
index 86907eb..5c2375f 100644
--- a/dtrans/test/win32/dnd/targetlistener.cxx
+++ b/dtrans/test/win32/dnd/targetlistener.cxx
@@ -29,12 +29,10 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_dtrans.hxx"
-
#include "targetlistener.hxx"
#include <com/sun/star/datatransfer/dnd/DNDConstants.hpp>
#include <com/sun/star/datatransfer/DataFlavor.hpp>
-//using namespace com::sun::star::datatransfer::dnd;
using namespace com::sun::star::datatransfer::dnd::DNDConstants;
using namespace com::sun::star::datatransfer;
using namespace rtl;
@@ -52,21 +50,11 @@ void SAL_CALL DropTargetListener::disposing( const EventObject& Source )
}
-
-
void SAL_CALL DropTargetListener::drop( const DropTargetDropEvent& e )
throw(RuntimeException)
{
-// e.Context->dropComplete( sal_True);
-// e.Context->acceptDrop( ACTION_COPY);
e.Context->rejectDrop();
- // if the Transferable contains text, then we send it to the edit window
-// Sequence<DataFlavor> flavors= e.Transferable->getTransferDataFlavors();
-// DataFlavor aFlavor;
-// for( int i=0; i < flavors.getLength(); i++)
-// aFlavor= flavors[4];
-
DataFlavor flavor( OUString(OUString(RTL_CONSTASCII_USTRINGPARAM("text/plain;charset=windows-1252"))),
OUString(L"Text plain"), getCppuType( ( Sequence<sal_Int8>*)0 ) );
@@ -81,9 +69,6 @@ void SAL_CALL DropTargetListener::dragEnter( const DropTargetDragEnterEvent& dtd
//If one drags something that is not moveable
if( !(dtde.SourceActions & dtde.DropAction) )
dtde.Context->acceptDrag( ACTION_COPY);
-
-// dtde.Context->rejectDrag( );
-
}
void SAL_CALL DropTargetListener::dragExit( const DropTargetEvent& dte )
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index a1a56f5..544faa8 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -49,7 +49,6 @@ using namespace ::cppu;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::xml::sax;
-//using namespace ::com::sun::star::util;
using namespace ::com::sun::star::io;
namespace sax_fastparser {
diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx
index 75eb831..70622b2 100644
--- a/sax/source/tools/converter.cxx
+++ b/sax/source/tools/converter.cxx
@@ -41,8 +41,6 @@ using namespace rtl;
using namespace com::sun::star;
using namespace com::sun::star::uno;
using namespace com::sun::star::util;
-//using namespace com::sun::star::text;
-//using namespace com::sun::star::style;
using namespace ::com::sun::star::i18n;
namespace sax {
diff --git a/svtools/source/table/tablecontrol.cxx b/svtools/source/table/tablecontrol.cxx
index 54f4cac..17f74eb 100644
--- a/svtools/source/table/tablecontrol.cxx
+++ b/svtools/source/table/tablecontrol.cxx
@@ -41,7 +41,6 @@ using ::com::sun::star::accessibility::XAccessible;
using namespace ::com::sun::star::accessibility;
using namespace ::com::sun::star::lang;
using namespace utl;
-//using namespace rtl;
//........................................................................
namespace svt { namespace table
{
More information about the Libreoffice-commits
mailing list