summaryrefslogtreecommitdiff
path: root/dtrans/test/win32/dnd
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-02-07 23:05:53 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-02-07 23:06:03 +0100
commitdedffc5920d285b5194fff7ff9e23cce8fb5c092 (patch)
tree3611116f779d649d2cde1e4997c79add1d1027b2 /dtrans/test/win32/dnd
parenta1360c8bc1859d59d8cc9e135019efc17115acff (diff)
Remove some dead code
Diffstat (limited to 'dtrans/test/win32/dnd')
-rw-r--r--dtrans/test/win32/dnd/targetlistener.cxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/dtrans/test/win32/dnd/targetlistener.cxx b/dtrans/test/win32/dnd/targetlistener.cxx
index ecc70e472916..28ca305338a9 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 )