Skip to content
Browse files

svglevelloader: removed some dead code

  • Loading branch information...
1 parent 0ad060d commit 58c44477eee445c90f73e3c72c79943c0d5feee4 @etam etam committed Jun 18, 2012
Showing with 2 additions and 21 deletions.
  1. +0 −13 svglevelloader.cpp
  2. +2 −8 svglevelloader.h
View
13 svglevelloader.cpp
@@ -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;
-//}
View
10 svglevelloader.h
@@ -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
@@ -69,8 +65,6 @@ class SvgLevelLoader : public QObject
//path of the file to open
QString path;
- //display size
- QSize displaySize;

0 comments on commit 58c4447

Please sign in to comment.
Something went wrong with that request. Please try again.