Skip to content

Commit

Permalink
svglevelloader: removed some dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
etam committed Jun 18, 2012
1 parent 0ad060d commit 58c4447
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
13 changes: 0 additions & 13 deletions svglevelloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,16 +353,3 @@ QColor SvgLevelLoader::parseFill(QDomElement el){
}
return color;
}

//rescale point
//QPoint SvgLevelLoader::scalePoint(QPoint p){
// QPoint cP=p;
// //Compute the rescalation factor
// float scaleX=1.0,scaleY=1.0;
// scaleX=float(displaySize.width())/1000.0;
// scaleY=float(displaySize.height())/1000.0;
// //rescale the point
// cP.setX(qRound(scaleX*float(p.x())));
// cP.setY(qRound(scaleY*float(p.y())));
// return cP;
//}
10 changes: 2 additions & 8 deletions svglevelloader.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@ class SvgLevelLoader : public QObject
{
Q_OBJECT
public:
explicit SvgLevelLoader(QString path="",QSize display=QSize(1000,1000),QObject *parent = 0) :
explicit SvgLevelLoader(QString path="", QObject *parent = 0) :
QObject(parent),
path(path),
displaySize(display)
path(path)
{
}

void setFile(QString path){
this->path=path;
}
void setDisplay(QSize size){
displaySize=size;
}
//function that parse the svg
bool parse();
//function to add a created goo
Expand Down Expand Up @@ -69,8 +65,6 @@ class SvgLevelLoader : public QObject

//path of the file to open
QString path;
//display size
QSize displaySize;



Expand Down

0 comments on commit 58c4447

Please sign in to comment.