]> git.sesse.net Git - kdenlive/commitdiff
[PATCH by Ray Lehtiniem] Delete some unused variables
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 7 Mar 2009 18:06:02 +0000 (18:06 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 7 Mar 2009 18:06:02 +0000 (18:06 +0000)
svn path=/trunk/kdenlive/; revision=3112

16 files changed:
src/abstractclipitem.cpp
src/abstractgroupitem.cpp
src/clipitem.cpp
src/customtrackview.cpp
src/docclipbase.cpp
src/geometryval.cpp
src/graphicsscenerectmove.cpp
src/initeffects.cpp
src/kdenlivedoc.cpp
src/mainwindow.cpp
src/parameterplotter.cpp
src/projectlist.cpp
src/projectlistview.cpp
src/renderer.cpp
src/titledocument.cpp
src/trackview.cpp

index 7cff160189e56142abe2dd101d050e8a8d5799ea..5270a1d5f8a38dda02d79636110c4a2869c7f0f1 100644 (file)
@@ -191,7 +191,6 @@ QPainterPath AbstractClipItem::upperRectPart(QRectF br) {
     int br_startx = (int)(br.x() + offset);
     int br_starty = (int)(br.y());
     int br_halfy = (int)(br.y() + br.height() / 2 - offset);
-    int br_endy = (int)(br.y() + br.height());
 
     roundRectPathUpper.moveTo(br_endx  , br_halfy);
     roundRectPathUpper.arcTo(br_endx - roundingX , br_starty , roundingX, roundingY, 0.0, 90.0);
@@ -210,7 +209,6 @@ QPainterPath AbstractClipItem::lowerRectPart(QRectF br) {
 
     int br_endx = (int)(br.x() + br .width() - offset);
     int br_startx = (int)(br.x() + offset);
-    int br_starty = (int)(br.y());
     int br_halfy = (int)(br.y() + br.height() / 2 - offset);
     int br_endy = (int)(br.y() + br.height() - 1);
 
index f605218d144d2902b9760a4bdecf633f914aef23..ec106a3528c018f62c5c55cab01e2e21810f3adc 100644 (file)
@@ -130,7 +130,6 @@ QVariant AbstractGroupItem::itemChange(GraphicsItemChange change, const QVariant
         else {
             bool forwardMove = newPos.x() > start.x();
             int offset = 0;
-            const double width = sceneBoundingRect().width() + 1;
             for (int i = 0; i < collindingItems.count(); i++) {
                 QGraphicsItem *collision = collindingItems.at(i);
                 if (collision->type() == AVWIDGET) {
index 1aeaec11341a959a74a85ec5942f88afa613d3e7..d22f3b75664f7798c28fc0715a9ba50eb58bf183 100644 (file)
@@ -337,8 +337,6 @@ void ClipItem::updateKeyframeEffect() {
             QString keyframes;
             if (m_keyframes.count() > 1) {
                 QMap<int, double>::const_iterator i = m_keyframes.constBegin();
-                double x1;
-                double y1;
                 while (i != m_keyframes.constEnd()) {
                     keyframes.append(QString::number(i.key()) + ':' + QString::number(i.value()) + ';');
                     ++i;
@@ -629,7 +627,6 @@ void ClipItem::paint(QPainter *painter,
     QList < CommentedTime >::Iterator it = markers.begin();
     GenTime pos;
     double framepos;
-    const int markerwidth = 4;
     QBrush markerBrush;
     markerBrush = QBrush(QColor(120, 120, 0, 140));
     QPen pen = painter->pen();
@@ -800,7 +797,6 @@ QList <GenTime> ClipItem::snapMarkers() const {
     QList < GenTime > snaps;
     QList < GenTime > markers = baseClip()->snapMarkers();
     GenTime pos;
-    double framepos;
 
     for (int i = 0; i < markers.size(); i++) {
         pos = markers.at(i) - cropStart();
@@ -816,7 +812,6 @@ QList <CommentedTime> ClipItem::commentedSnapMarkers() const {
     QList < CommentedTime > snaps;
     QList < CommentedTime > markers = baseClip()->commentedSnapMarkers();
     GenTime pos;
-    double framepos;
 
     for (int i = 0; i < markers.size(); i++) {
         pos = markers.at(i).time() - cropStart();
index 3dcc23b6d44cfb30c9ea2a8736969923e8f32885..eb78be5ace5b53bc1c8ed3955e1a3572d937867c 100644 (file)
@@ -1878,8 +1878,6 @@ void CustomTrackView::mouseReleaseEvent(QMouseEvent * event) {
         m_dragItem = NULL;
         return;
     } else if (m_operationMode == SPACER) {
-        int endClick = (int)(mapToScene(event->pos()).x() + 0.5);
-        int mappedClick = (int)(mapToScene(m_clickEvent).x() + 0.5);
         int track = (int)(mapToScene(m_clickEvent).y() / m_tracksHeight);
         if (m_selectionGroup->sceneBoundingRect().height() > m_tracksHeight) {
             // We are moving all tracks
index 81c55ad25552aa8d2104e24b2967b83f60020706..eacbd33c3f7310787ae015f7a6b382ce93253fd3 100644 (file)
@@ -416,7 +416,6 @@ Mlt::Producer *DocClipBase::producer(int track) {
     }*/
     if (track == -1 || (m_clipType != AUDIO && m_clipType != AV)) {
         if (m_baseTrackProducers.count() == 0) return NULL;
-        int i;
         for (int i = 0; i < m_baseTrackProducers.count(); i++) {
             if (m_baseTrackProducers.at(i) != NULL)
                 return m_baseTrackProducers.at(i);
index a42d96d1d4a317d143948cd23b72adc1e3d4d4fe..62584209f6b4f1130d83eb77df2939a07cfb4c34 100644 (file)
@@ -45,7 +45,6 @@ Geometryval::Geometryval(const MltVideoProfile profile, QWidget* parent): QWidge
     scene = new GraphicsSceneRectMove(this);
     scene->setTool(TITLE_SELECT);
     view->setScene(scene);
-    double aspect = (double) profile.sample_aspect_num / profile.sample_aspect_den * profile.width / profile.height;
     QGraphicsRectItem *m_frameBorder = new QGraphicsRectItem(QRectF(0, 0, profile.width, profile.height));
     m_frameBorder->setZValue(-1100);
     m_frameBorder->setBrush(QColor(255, 255, 0, 30));
index 3c94eccf98524b3675e44624de1a8abb2dae1806..7126a93c85dd24f5dc698e6d51536f57f5a85632 100644 (file)
@@ -365,7 +365,6 @@ void GraphicsSceneRectMove::mouseMoveEvent(QGraphicsSceneMouseEvent* e) {
 void GraphicsSceneRectMove::wheelEvent(QGraphicsSceneWheelEvent * wheelEvent) {
     QList<QGraphicsView*> viewlist = views();
     //kDebug() << wheelEvent->delta() << " " << zoom;
-    double scale = 1.0;
     if (viewlist.size() > 0) {
         if (wheelEvent->delta() < 0) emit sceneZoom(true);
         else emit sceneZoom(false);
index c6384cfdb354423e7dff188a4338948f0d8d33c3..12174d8d1a2806a204233f746246f97079f87f6c 100644 (file)
@@ -271,7 +271,6 @@ void initEffects::parseEffectFile(EffectsList *customEffectList, EffectsList *au
 
         // Parse effect file
         if ((filtersList.contains(tag) || producersList.contains(tag)) && ladspaOk) {
-            bool isAudioEffect = false;
             QString type = documentElement.attribute("type", QString());
             if (type == "audio") audioEffectList->append(documentElement);
             else if (type == "custom") customEffectList->append(documentElement);
index 23d4d9841e66a50ef8e7230461540b660ae2eac4..2f752556fd1a362d53c24637543f141cc2a4ecb1 100644 (file)
@@ -1260,7 +1260,6 @@ const QString KdenliveDoc::description() const {
 
 void KdenliveDoc::addClip(QDomElement elem, QString clipId, bool createClipItem) {
     const QString producerId = clipId.section('_', 0, 0);
-    int subtrack = clipId.section('_', 1, 1).toInt();
     DocClipBase *clip = m_clipManager->getClipById(producerId);
     if (clip == NULL) {
         /*kDebug()<<"// CLIP "<<clipId<<" NOT OFUND in LIST, CREATING";
index 767b8694f91db6a2be73c5115d88bb5d9317b043..9ecab01d0480cee25cdeb773caaddc85972a5120 100644 (file)
@@ -2282,7 +2282,6 @@ void MainWindow::slotSetOutPoint() {
 void MainWindow::slotGetNewLumaStuff() {
     //KNS::Entry::List download();
     KNS::Entry::List entries = KNS::Engine::download();
-    int numberInstalled = 0;
     // list of changed entries
     kDebug() << "// PARSING KNS";
     foreach(KNS::Entry* entry, entries) {
index 99f9e65f04782a10cd5b2624f62c922ba4f7dece..5d736d7279fc9705f090dd7f467a7a561e2c7987 100644 (file)
@@ -169,7 +169,7 @@ void ParameterPlotter::mouseMoveEvent(QMouseEvent * event) {
 
     if (movepoint != NULL) {
         QList<KPlotPoint*> list =   pointsUnderPoint(event->pos() - QPoint(leftPadding(), topPadding())) ;
-        int i = 0, j = -1;
+        int i = 0;
         foreach(KPlotObject *o, plotObjects()) {
             QList<KPlotPoint*> points = o->points();
             for (int p = 0;p < points.size();p++) {
index f2b116d3d29e11a8e28931383c0434e676aa9b3b..c821e17725be81da140ff6d1645c63057a3e6634 100644 (file)
@@ -57,7 +57,6 @@
 ProjectList::ProjectList(QWidget *parent)
         : QWidget(parent), m_render(NULL), m_fps(-1), m_commandStack(NULL), m_selectedItem(NULL), m_infoQueue(QMap <QString, QDomElement> ()), m_thumbnailQueue(QList <QString> ()), m_refreshed(false), m_editAction(NULL), m_openAction(NULL), m_deleteAction(NULL), m_reloadAction(NULL) {
 
-    QWidget *vbox = new QWidget;
     listView = new ProjectListView(this);;
     QVBoxLayout *layout = new QVBoxLayout;
     layout->setContentsMargins(0, 0, 0, 0);
index 117d04565d0ac75dbf770a6bd6837229c45470dc..5faa3591361123baa9f5e5eeccbd866f90eac84f 100644 (file)
@@ -68,7 +68,6 @@ void ProjectListView::configureColumns(const QPoint& pos) {
 
     QHeaderView* headerView = header();
     for (int i = 2; i < headerView->count(); ++i) {
-        const int logicalIndex = headerView->logicalIndex(i);
         const QString text = model()->headerData(i, Qt::Horizontal).toString();
         QAction* action = popup.addAction(text);
         action->setCheckable(true);
index 0f8f9312af1ceb65ccc3e029703416ef6b624891..914e3355a595b9c95fddc5fd689331a5f0c235ff 100644 (file)
@@ -533,7 +533,6 @@ void Render::getFileProperties(const QDomElement &xml, const QString &clipId, bo
     delete[] tmp;
     int frameNumber = xml.attribute("thumbnail", "0").toInt();
     if (frameNumber != 0) producer->seek(frameNumber);
-    mlt_properties properties = MLT_PRODUCER_PROPERTIES(producer->get_producer());
 
     filePropertyMap["duration"] = QString::number(producer->get_playtime());
     //kDebug() << "///////  PRODUCER: " << url.path() << " IS: " << producer.get_playtime();
@@ -2388,7 +2387,6 @@ bool Render::mltMoveTransition(QString type, int startTrack, int newTrack, int n
 
     Mlt::Service service(m_mltProducer->parent().get_service());
     Mlt::Tractor tractor(service);
-    Mlt::Field *field = tractor.field();
 
     mlt_service_lock(service.get_service());
     m_mltConsumer->set("refresh", 0);
@@ -2445,7 +2443,6 @@ void Render::mltUpdateTransitionParams(QString type, int a_track, int b_track, G
     m_isBlocked = true;
     Mlt::Service service(m_mltProducer->parent().get_service());
     Mlt::Tractor tractor(service);
-    Mlt::Field *field = tractor.field();
 
     //m_mltConsumer->set("refresh", 0);
     mlt_service serv = m_mltProducer->parent().get_service();
@@ -2623,7 +2620,6 @@ void Render::mltDeleteTransparency(int pos, int track, int id) {
 void Render::mltResizeTransparency(int oldStart, int newStart, int newEnd, int track, int id) {
     Mlt::Service service(m_mltProducer->parent().get_service());
     Mlt::Tractor tractor(service);
-    Mlt::Field *field = tractor.field();
 
     mlt_service_lock(service.get_service());
     m_mltConsumer->set("refresh", 0);
@@ -2662,7 +2658,6 @@ void Render::mltResizeTransparency(int oldStart, int newStart, int newEnd, int t
 void Render::mltMoveTransparency(int startTime, int endTime, int startTrack, int endTrack, int id) {
     Mlt::Service service(m_mltProducer->parent().get_service());
     Mlt::Tractor tractor(service);
-    Mlt::Field *field = tractor.field();
 
     mlt_service_lock(service.get_service());
     m_mltConsumer->set("refresh", 0);
index 4b42e87600a3019478d4edd67457040866c9dd49..664c3311825e803c04b391e6fcddfca1944b6f3c 100644 (file)
@@ -155,7 +155,6 @@ bool TitleDocument::saveDocument(const KUrl& url, QGraphicsPolygonItem* startv,
 int TitleDocument::loadDocument(const KUrl& url, QGraphicsPolygonItem* startv, QGraphicsPolygonItem* endv) {
     QString tmpfile;
     QDomDocument doc;
-    double aspect_ratio = 4.0 / 3.0;
     if (!scene)
         return -1;
 
index 57b48fa37bd328ed5a6a79bf310f3c0fccc6a6d3..1e8368e49d1c4e0e12ff78a8c2e146b5c505af34 100644 (file)
@@ -374,7 +374,6 @@ void TrackView::slotRebuildTrackHeaders() {
 
 
 int TrackView::slotAddProjectTrack(int ix, QDomElement xml, bool locked) {
-    int trackTop = KdenliveSettings::trackheight() * ix;
     // parse track
     int position = 0;
     for (QDomNode n = xml.firstChild(); !n.isNull(); n = n.nextSibling()) {