[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kstars] kstars/tools: remove unused variable
From:       Marcos CARDINOT <mcardinot () gmail ! com>
Date:       2016-06-19 22:55:55
Message-ID: E1bEldD-0003Qt-CJ () code ! kde ! org
[Download RAW message or body]

Git commit d6a6c996213742245b283fe8c98bb9a986e139d6 by Marcos CARDINOT.
Committed on 19/06/2016 at 22:55.
Pushed by cardinot into branch 'master'.

remove unused variable

M  +2    -2    kstars/tools/eyepiecefield.cpp
M  +1    -0    kstars/tools/whatsinteresting/skyobjlistmodel.cpp

http://commits.kde.org/kstars/d6a6c996213742245b283fe8c98bb9a986e139d6

diff --git a/kstars/tools/eyepiecefield.cpp b/kstars/tools/eyepiecefield.cpp
index 98450ba..698045c 100644
--- a/kstars/tools/eyepiecefield.cpp
+++ b/kstars/tools/eyepiecefield.cpp
@@ -192,7 +192,7 @@ void EyepieceField::slotEnforcePreset( int index ) {
 
 void EyepieceField::showEyepieceField( SkyPoint *sp, FOV const * const fov, const \
QString &imagePath ) {  
-    double dssWidth, dssHeight, fovWidth, fovHeight;
+    double fovWidth, fovHeight;
 
     Q_ASSERT( sp );
 
@@ -299,7 +299,7 @@ void EyepieceField::generateEyepieceView( SkyPoint *sp, QImage \
*skyChart, QImage  dssHeight = dssImage.getMetadata().height;
         if( dssWidth == 0 || dssHeight == 0 ) {
             // Metadata unavailable, guess based on most common DSS arcsec/pixel
-            const double dssArcSecPerPixel = 1.01;
+            //const double dssArcSecPerPixel = 1.01;
             dssWidth = dssImage.getImage().width()*1.01/60.0;
             dssHeight = dssImage.getImage().height()*1.01/60.0;
         }
diff --git a/kstars/tools/whatsinteresting/skyobjlistmodel.cpp \
b/kstars/tools/whatsinteresting/skyobjlistmodel.cpp index cb1743b..6d8a300 100644
--- a/kstars/tools/whatsinteresting/skyobjlistmodel.cpp
+++ b/kstars/tools/whatsinteresting/skyobjlistmodel.cpp
@@ -22,6 +22,7 @@ SkyObjListModel::SkyObjListModel(SkyObjItem *soitem, QObject \
*parent): QAbstract  //FIXME Needs porting to KF5
     //Fixed in roleNames(). setRoleNames is not a member of QAbstractListModel \
anymore  //setRoleNames(soitem->roleNames());
+    Q_UNUSED(soitem);
 }
 
 QHash<int, QByteArray> SkyObjListModel::roleNames() const


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic