]> git.sesse.net Git - kdenlive/commitdiff
[PATCH by Ray Lehtiniemi] Comment out variables used only in commented out code
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 7 Mar 2009 18:07:09 +0000 (18:07 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 7 Mar 2009 18:07:09 +0000 (18:07 +0000)
svn path=/trunk/kdenlive/; revision=3113

src/abstractgroupitem.cpp
src/clipitem.cpp
src/renderer.cpp
src/trackview.cpp
src/transition.cpp

index ec106a3528c018f62c5c55cab01e2e21810f3adc..0b9016b16007de6111a229eaae86eecc512bb91e 100644 (file)
@@ -89,7 +89,7 @@ QVariant AbstractGroupItem::itemChange(GraphicsItemChange change, const QVariant
         newPos.setX(xpos);
 
         QPointF start = pos();
-        int startTrack = (start.y() + trackHeight / 2) / trackHeight;
+        //int startTrack = (start.y() + trackHeight / 2) / trackHeight;
         int newTrack = (newPos.y()) / trackHeight;
         //kDebug()<<"// GROUP NEW T:"<<newTrack<<",START T:"<<startTrack<<",MAX:"<<projectScene()->tracksCount() - 1;
         newTrack = qMin(newTrack, projectScene()->tracksCount() - (int)(boundingRect().height() + 5) / trackHeight);
index d22f3b75664f7798c28fc0715a9ba50eb58bf183..7b8c02e16e80f2b0ef816c052c8e768885028500 100644 (file)
@@ -1384,7 +1384,7 @@ void ClipItem::dragLeaveEvent(QGraphicsSceneDragDropEvent *event) {
 }
 void ClipItem::addTransition(Transition* t) {
     m_transitionsList.append(t);
-    CustomTrackView *view = (CustomTrackView *) scene()->views()[0];
+    //CustomTrackView *view = (CustomTrackView *) scene()->views()[0];
     QDomDocument doc;
     QDomElement e = doc.documentElement();
     //if (view) view->slotAddTransition(this, t->toXML() , t->startPos(), track());
index 914e3355a595b9c95fddc5fd689331a5f0c235ff..b8dc9502b3aa7235edf1d0aadd1efcd4cb5c9d70 100644 (file)
@@ -940,7 +940,7 @@ void Render::refreshDisplay() {
     if (!m_mltProducer) return;
     //m_mltConsumer->set("refresh", 0);
 
-    mlt_properties properties = MLT_PRODUCER_PROPERTIES(m_mltProducer->get_producer());
+    //mlt_properties properties = MLT_PRODUCER_PROPERTIES(m_mltProducer->get_producer());
     /*if (KdenliveSettings::osdtimecode()) {
         mlt_properties_set_int( properties, "meta.attr.timecode", 1);
         mlt_properties_set( properties, "meta.attr.timecode.markup", "#timecode#");
@@ -1221,8 +1221,8 @@ void Render::exportCurrentFrame(KUrl url, bool notify) {
         return;
     }
 
-    int height = 1080;//KdenliveSettings::defaultheight();
-    int width = 1940; //KdenliveSettings::displaywidth();
+    //int height = 1080;//KdenliveSettings::defaultheight();
+    //int width = 1940; //KdenliveSettings::displaywidth();
     //TODO: rewrite
     QPixmap pix; // = KThumb::getFrame(m_mltProducer, -1, width, height);
     /*
@@ -1576,7 +1576,7 @@ void Render::mltInsertSpace(QMap <int, int> trackClipStartList, QMap <int, int>
             Mlt::Playlist trackPlaylist((mlt_playlist) trackProducer.get_service());
 
 
-            int clipNb = trackPlaylist.count();
+            //int clipNb = trackPlaylist.count();
             insertPos = trackClipStartList.value(trackNb - 1);
             if (insertPos != -1) {
                 insertPos += offset;
@@ -1833,7 +1833,7 @@ bool Render::mltAddEffect(int track, GenTime position, EffectsParameterList para
         char *endtag = decodedString(params.paramValue("endtag", "end"));
         kDebug() << "// ADDING KEYFRAME TAGS: " << starttag << ", " << endtag;
         int duration = clip->get_playtime();
-        double max = params.paramValue("max").toDouble();
+        //double max = params.paramValue("max").toDouble();
         double min = params.paramValue("min").toDouble();
         double factor = params.paramValue("factor", "1").toDouble();
         params.removeParam("starttag");
index 1e8368e49d1c4e0e12ff78a8c2e146b5c505af34..ee4c862387046402ed6c78ac410a958413e13d88 100644 (file)
@@ -120,7 +120,7 @@ void TrackView::setDuration(int dur) {
 }
 
 void TrackView::parseDocument(QDomDocument doc) {
-    int cursorPos = 0;
+    //int cursorPos = 0;
     m_documentErrors.clear();
     // kDebug() << "//// DOCUMENT: " << doc.toString();
     /*QDomNode props = doc.elementsByTagName("properties").item(0);
index e345d08f149934ace2049f7f27c4a64cf8359372..b88a494fd07326b7d88c60a0337da9a0a4afa1d6 100644 (file)
@@ -154,7 +154,7 @@ void Transition::paint(QPainter *painter,
 
     painter->fillRect(exposed, brush());
 
-    int top = (int)(br.y() + br.height() / 2 - 7);
+    //int top = (int)(br.y() + br.height() / 2 - 7);
     QPointF p1(br.x(), br.y() + br.height() / 2 - 7);
     painter->setMatrixEnabled(false);
     //painter->drawPixmap(painter->matrix().map(p1) + QPointF(5, 0), transitionPixmap());