Skip to content

Commit

Permalink
remove unnecessary iostream includes
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Nov 26, 2011
1 parent 7ef04f6 commit 0a49c8c
Show file tree
Hide file tree
Showing 22 changed files with 20 additions and 50 deletions.
2 changes: 0 additions & 2 deletions src/analysis/interpolation/DualEdgeTriangulation.h
Expand Up @@ -23,12 +23,10 @@
#include <QList>
#include "MathUtils.h"
#include "TriangleInterpolator.h"
//#include <qapp.h>
#include <QColor>
#include <QFile>
#include <QTextStream>
#include <QMessageBox>
#include <iostream>
#include <cfloat>
#include <QBuffer>
#include <QStringList>
Expand Down
1 change: 0 additions & 1 deletion src/analysis/interpolation/Node.h
Expand Up @@ -18,7 +18,6 @@
#define NODE_H

#include "Point3D.h"
#include <iostream>

/**Node is a class used by Line3D. It represents a node in the single directed linked list. Associated Point3D objects are deleted when the node is deleted.*/
class ANALYSIS_EXPORT Node
Expand Down
25 changes: 12 additions & 13 deletions src/analysis/interpolation/ParametricLine.cc
Expand Up @@ -15,75 +15,74 @@
***************************************************************************/

#include "ParametricLine.h"
#include <iostream>

#include <qgslogger.h>

void ParametricLine::add( ParametricLine* pl )
{
Q_UNUSED( pl );
std::cout << "warning, derive a class from ParametricLine" << std::endl;
QgsDebugMsg( "warning, derive a class from ParametricLine" );
}

void ParametricLine::calcFirstDer( float t, Vector3D* v )
{
Q_UNUSED( t );
Q_UNUSED( v );
std::cout << "warning, derive a class from ParametricLine" << std::endl;
QgsDebugMsg( "warning, derive a class from ParametricLine");
}

void ParametricLine::calcSecDer( float t, Vector3D* v )
{
Q_UNUSED( t );
Q_UNUSED( v );
std::cout << "warning, derive a class from ParametricLine" << std::endl;
QgsDebugMsg( "warning, derive a class from ParametricLine");
}

void ParametricLine::calcPoint( float t, Point3D *p )
{
Q_UNUSED( t );
Q_UNUSED( p );
std::cout << "warning, derive a class from ParametricLine" << std::endl;
QgsDebugMsg( "warning, derive a class from ParametricLine");
}

ParametricLine* ParametricLine::getParent() const
{
std::cout << "warning, derive a class from ParametricLine" << std::endl;
QgsDebugMsg( "warning, derive a class from ParametricLine");
return 0;
}

void ParametricLine::remove( int i )
{
Q_UNUSED( i );
std::cout << "warning, derive a class from ParametricLine" << std::endl;
QgsDebugMsg( "warning, derive a class from ParametricLine");
}

void ParametricLine::setControlPoly( QVector<Point3D*>* cp )
{
Q_UNUSED( cp );
std::cout << "warning, derive a class from ParametricLine" << std::endl;
QgsDebugMsg( "warning, derive a class from ParametricLine");
}

void ParametricLine::setParent( ParametricLine* paral )
{
Q_UNUSED( paral );
std::cout << "warning, derive a class from ParametricLine" << std::endl;
QgsDebugMsg( "warning, derive a class from ParametricLine");
}

int ParametricLine::getDegree() const
{
std::cout << "warning, derive a class from ParametricLine" << std::endl;
QgsDebugMsg( "warning, derive a class from ParametricLine");
return mDegree;
}

const Point3D* ParametricLine::getControlPoint( int number ) const
{
Q_UNUSED( number );
std::cout << "warning, derive a class from ParametricLine" << std::endl;
QgsDebugMsg( "warning, derive a class from ParametricLine");
return 0;
}

const QVector<Point3D*>* ParametricLine::getControlPoly() const
{
std::cout << "warning, derive a class from ParametricLine" << std::endl;
QgsDebugMsg( "warning, derive a class from ParametricLine");
return 0;
}
1 change: 0 additions & 1 deletion src/analysis/interpolation/Point3D.h
Expand Up @@ -18,7 +18,6 @@
#define POINT3D_H

#include <cmath>
#include <iostream>

/**Point3D is a class to represent a three dimensional point*/
class ANALYSIS_EXPORT Point3D
Expand Down
2 changes: 0 additions & 2 deletions src/app/ogr/qgsnewogrconnection.cpp
Expand Up @@ -14,8 +14,6 @@
* (at your option) any later version. *
* *
***************************************************************************/
#include <iostream>

#include <QSettings>
#include <QMessageBox>
#include <QInputDialog>
Expand Down
1 change: 0 additions & 1 deletion src/app/qgsdecorationnortharrow.cpp
Expand Up @@ -39,7 +39,6 @@ email : tim@linfiniti.com
#include <QFile>

//non qt includes
#include <iostream>
#include <cmath>
#include <cassert>

Expand Down
1 change: 0 additions & 1 deletion src/app/qgslabelinggui.cpp
Expand Up @@ -30,7 +30,6 @@
#include <QColorDialog>
#include <QFontDialog>
#include <QTextEdit>
#include <iostream>
#include <QApplication>
#include <QMessageBox>

Expand Down
1 change: 0 additions & 1 deletion src/browser/main.cpp
Expand Up @@ -15,7 +15,6 @@
* (at your option) any later version. *
* *
***************************************************************************/
#include <iostream>
#include <QLocale>
#include <QSettings>
#include <QTranslator>
Expand Down
1 change: 0 additions & 1 deletion src/core/composer/qgscomposermap.cpp
Expand Up @@ -37,7 +37,6 @@
#include <QGraphicsView>
#include <QPainter>
#include <QSettings>
#include <iostream>
#include <cmath>

QgsComposerMap::QgsComposerMap( QgsComposition *composition, int x, int y, int width, int height )
Expand Down
2 changes: 0 additions & 2 deletions src/core/qgsmaplayerregistry.cpp
Expand Up @@ -15,8 +15,6 @@
* *
***************************************************************************/

#include <iostream>

#include "qgsmaplayerregistry.h"
#include "qgsmaplayer.h"
#include "qgslogger.h"
Expand Down
1 change: 0 additions & 1 deletion src/core/qgspallabeling.cpp
Expand Up @@ -17,7 +17,6 @@

#include "qgspallabeling.h"

#include <iostream>
#include <list>

#include <pal/pal.h>
Expand Down
2 changes: 0 additions & 2 deletions src/core/qgsproviderregistry.cpp
Expand Up @@ -18,8 +18,6 @@

#include "qgsproviderregistry.h"

#include <iostream>

#include <QString>
#include <QDir>
#include <QLibrary>
Expand Down
1 change: 0 additions & 1 deletion src/core/qgssearchtreenode.cpp
Expand Up @@ -25,7 +25,6 @@
#include <QObject>
#include <QSet>
#include <QSettings>
#include <iostream>

#include <cmath>

Expand Down
1 change: 0 additions & 1 deletion src/core/spatialindex/include/tools/Tools.h
Expand Up @@ -49,7 +49,6 @@ typedef unsigned __int64 uint64_t;
#endif

#include <assert.h>
#include <iostream>
#include <iomanip>
#include <iterator>
#include <string>
Expand Down
3 changes: 0 additions & 3 deletions src/plugins/delimited_text/qgsdelimitedtextplugin.cpp
Expand Up @@ -32,9 +32,6 @@
#include <QAction>
#include <QFile>

//non qt includes
#include <iostream>

//the gui subclass
#include "qgsdelimitedtextplugingui.h"

Expand Down
2 changes: 0 additions & 2 deletions src/plugins/dxf2shp_converter/dxflib/src/dl_writer.h
Expand Up @@ -36,8 +36,6 @@
#define strcasecmp(s,t) stricmp(s,t)
#endif

#include <iostream>

#include "dl_attributes.h"
#include "dl_codes.h"

Expand Down
1 change: 0 additions & 1 deletion src/plugins/georeferencer/qgsimagewarper.cpp
Expand Up @@ -14,7 +14,6 @@
***************************************************************************/

#include <cmath>
#include <iostream>
#include <cstdio>

#include <cpl_conv.h>
Expand Down
10 changes: 4 additions & 6 deletions src/plugins/gps_importer/qgsgpsdevicedialog.cpp
Expand Up @@ -13,16 +13,14 @@
#include "qgsgpsdevicedialog.h"
#include "qgisgui.h"

#include <iostream>

#include <QMessageBox>
#include <QSettings>


QgsGPSDeviceDialog::QgsGPSDeviceDialog( std::map<QString, QgsGPSDevice*>&
devices ) :
QDialog( 0, QgisGui::ModalDialogFlags ), mDevices( devices )

QgsGPSDeviceDialog::QgsGPSDeviceDialog( std::map<QString,
QgsGPSDevice*>& devices )
: QDialog( 0, QgisGui::ModalDialogFlags )
, mDevices( devices )
{
setupUi( this );
setAttribute( Qt::WA_DeleteOnClose );
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/gps_importer/qgsgpsplugingui.cpp
Expand Up @@ -24,15 +24,15 @@
//standard includes
#include <cassert>
#include <cstdlib>
#include <iostream>


QgsGPSPluginGui::QgsGPSPluginGui( const BabelMap& importers,
std::map<QString, QgsGPSDevice*>& devices,
std::vector<QgsVectorLayer*> gpxMapLayers,
QWidget* parent, Qt::WFlags fl )
: QDialog( parent, fl ), mGPXLayers( gpxMapLayers ),
mImporters( importers ), mDevices( devices )
: QDialog( parent, fl )
, mGPXLayers( gpxMapLayers )
, mImporters( importers )
, mDevices( devices )
{
setupUi( this );
populatePortComboBoxes();
Expand Down
2 changes: 0 additions & 2 deletions src/plugins/spit/qgsspit.cpp
Expand Up @@ -29,8 +29,6 @@
#include <QTableWidgetItem>
#include <QInputDialog>

#include <iostream>

#include "qgsencodingfiledialog.h"

#include "qgspgutil.h"
Expand Down
1 change: 0 additions & 1 deletion src/providers/gpx/qgsgpxprovider.cpp
Expand Up @@ -18,7 +18,6 @@
***************************************************************************/

#include <algorithm>
#include <iostream>
#include <limits>
#include <cstring>
#include <cmath>
Expand Down
1 change: 0 additions & 1 deletion src/providers/osm/osmhandler.cpp
Expand Up @@ -14,7 +14,6 @@

#include "osmhandler.h"

#include <iostream>
#include <cstring>

#include "qgslogger.h"
Expand Down

0 comments on commit 0a49c8c

Please sign in to comment.