Skip to content

Commit

Permalink
Removed old legacy code regarding QgsMapLayerInterface
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9527 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Oct 23, 2008
1 parent 9b5d9cd commit 40a8f28
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 304 deletions.
34 changes: 0 additions & 34 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@
class QTreeWidgetItem;

/* typedefs for plugins */
typedef QgsMapLayerInterface *create_it();
typedef QgisPlugin *create_ui( QgisInterface * qI );
typedef QString name_t();
typedef QString description_t();
Expand Down Expand Up @@ -4293,39 +4292,6 @@ void QgisApp::loadPlugin( QString theFullPathName, QString name )

}
break;
/*
// TODO: to be removed completely
case QgisPlugin::MAPLAYER:
{
// Map layer - requires interaction with the canvas
create_it *cf = ( create_it * ) cast_to_fptr( myLib->resolve( "classFactory" ) );
if ( cf )
{
QgsMapLayerInterface *pl = cf();
if ( pl )
{
// set the main window pointer for the plugin
pl->setQgisMainWindow( this );
pl->initGui();
//add it to the qsettings file [ts]
settings.setValue( "/Plugins/" + name, true );
}
else
{
// something went wrong
QMessageBox::warning( this, tr( "Error Loading Plugin" ), tr( "There was an error loading %1." ) );
//add it to the qsettings file [ts]
settings.setValue( "/Plugins/" + name, false );
}
}
else
{
QgsDebugMsg( "Unable to find the class factory for " + theFullPathName );
}
}
break;
*/
default:
// type is unknown
QgsDebugMsg( "Plugin " + theFullPathName + " did not return a valid type and cannot be loaded" );
Expand Down
39 changes: 0 additions & 39 deletions src/app/qgsmaplayerinterface.h

This file was deleted.

1 change: 0 additions & 1 deletion src/gui/qgsmapcanvas.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class QGraphicsScene;

class QgsMapToPixel;
class QgsMapLayer;
class QgsMapLayerInterface;
class QgsLegend;
class QgsLegendView;
class QgsRubberBand;
Expand Down
4 changes: 0 additions & 4 deletions src/plugins/maplayer/.cvsignore

This file was deleted.

80 changes: 0 additions & 80 deletions src/plugins/maplayer/maplayertest.cpp

This file was deleted.

41 changes: 0 additions & 41 deletions src/plugins/maplayer/maplayertest.h

This file was deleted.

105 changes: 0 additions & 105 deletions src/plugins/maplayer/matrix1.xpm

This file was deleted.

0 comments on commit 40a8f28

Please sign in to comment.