Commit f352c5f8 authored by Vincent Pinon's avatar Vincent Pinon

fix cppcheck warnings (clean unused functions)

parent 15d14b19
......@@ -50,13 +50,6 @@ static void consumer_gl_frame_show(mlt_consumer, MltDeviceCapture * self, mlt_fr
self->showFrame(frame);
}
/*static void rec_consumer_frame_show(mlt_consumer, MltDeviceCapture * self, mlt_frame frame_ptr)
{
Mlt::Frame frame(frame_ptr);
if (!frame.is_valid()) return;
self->gotCapturedFrame(frame);
}*/
static void rec_consumer_frame_preview(mlt_consumer, MltDeviceCapture * self, mlt_frame frame_ptr)
{
Mlt::Frame frame(frame_ptr);
......@@ -81,7 +74,6 @@ static void rec_consumer_frame_preview(mlt_consumer, MltDeviceCapture * self, ml
MltDeviceCapture::MltDeviceCapture(QString profile, VideoSurface *surface, QWidget *parent) :
AbstractRender(Kdenlive::RecordMonitor, parent),
doCapture(0),
sendFrameForAnalysis(false),
processingImage(false),
m_mltConsumer(NULL),
m_mltProducer(NULL),
......@@ -228,19 +220,6 @@ void MltDeviceCapture::stop()
}
void MltDeviceCapture::slotDoRefresh()
{
QMutexLocker locker(&m_mutex);
if (!m_mltProducer)
return;
if (m_mltConsumer) {
if (m_mltConsumer->is_stopped()) m_mltConsumer->start();
m_mltConsumer->purge();
m_mltConsumer->set("refresh", 1);
}
}
void MltDeviceCapture::emitFrameUpdated(Mlt::Frame& frame)
{
/*
......@@ -344,44 +323,6 @@ void MltDeviceCapture::slotCheckDroppedFrames()
}
}
void MltDeviceCapture::gotCapturedFrame(Mlt::Frame& frame)
{
if (m_mltProducer) {
int dropped = m_mltProducer->get_int("dropped");
if (dropped > m_droppedFrames) {
m_droppedFrames = dropped;
emit droppedFrames(m_droppedFrames);
}
}
m_frameCount++;
if (!m_livePreview) return;
//if (m_livePreview == 0 && (m_frameCount % 10 > 0)) return;
mlt_image_format format = mlt_image_rgb24;
int width = 0;
int height = 0;
uint8_t *data = frame.get_image(format, width, height, 0);
//QImage image(width, height, QImage::Format_RGB888);
//memcpy(image.bits(), data, width * height * 3);
QImage image((uchar *)data, width, height, QImage::Format_RGB888);
//m_captureDisplayWidget->setImage(image);
//TEST: is it better to process frame conversion ouside MLT???
/*
if (!m_livePreview || processingImage) return;
mlt_image_format format = (mlt_image_format) frame.get_int("format"); //mlt_image_rgb24a;
int width = frame.get_int("width");
int height = frame.get_int("height");
unsigned char *buffer = (unsigned char *) frame.get_data("image");
//unsigned char *buffer = frame.get_image(format, width, height);
//convert from uyvy422 to rgba
if (format == mlt_image_yuv422) {
QtConcurrent::run(this, &MltDeviceCapture::uyvy2rgb, (unsigned char *) buffer, width, height);
//CaptureHandler::uyvy2rgb((uchar *)frameBytes, (uchar *)image.bits(), videoFrame->GetWidth(), videoFrame->GetHeight());
}*/
}
void MltDeviceCapture::saveFrame(Mlt::Frame& frame)
{
mlt_image_format format = mlt_image_rgb24;
......@@ -459,12 +400,11 @@ bool MltDeviceCapture::slotStartCapture(const QString &params, const QString &pa
QStringList paramList = params.split(' ', QString::SkipEmptyParts);
char *tmp2;
for (int i = 0; i < paramList.count(); ++i) {
tmp = qstrdup(paramList.at(i).section('=', 0, 0).toUtf8().constData());
QString value = paramList.at(i).section('=', 1, 1);
if (value == "%threads") value = QString::number(QThread::idealThreadCount());
tmp2 = qstrdup(value.toUtf8().constData());
char *tmp2 = qstrdup(value.toUtf8().constData());
renderProps->set(tmp, tmp2);
delete[] tmp;
delete[] tmp2;
......
......@@ -58,9 +58,6 @@ Q_OBJECT public:
int doCapture;
/** @brief This property is used to decide if the renderer should convert it's frames to QImage for use in other Kdenlive widgets. */
bool sendFrameForAnalysis;
/** @brief Someone needs us to send again a frame. */
void sendFrameUpdate() {}
......@@ -77,8 +74,6 @@ Q_OBJECT public:
*/
bool slotStartCapture(const QString &params, const QString &path, const QString &playlist, bool livePreview, bool xmlPlaylist = true);
bool slotStartPreview(const QString &producer, bool xmlFormat = false);
/** @brief A frame arrived from the MLT Video4Linux process. */
void gotCapturedFrame(Mlt::Frame& frame);
/** @brief Save current frame to file. */
void captureFrame(const QString &path);
......@@ -148,10 +143,8 @@ signals:
public slots:
/** @brief Stops the consumer. */
void stop();
void slotDoRefresh();
};
#endif
......@@ -111,17 +111,6 @@ bool EffectsParameterList::hasParam(const QString &name) const {
return false;
}
void EffectsParameterList::setParamValue(const QString &name, const QString &value) {
bool found = false;
for (int i = 0; i < size(); ++i)
if (at(i).name() == name) {
// update value
replace(i, EffectParameter(name, value));
found = true;
}
if (!found) addParam(name, value);
}
QString EffectsParameterList::paramValue(const QString &name, const QString &defaultValue) const {
for (int i = 0; i < size(); ++i) {
if (at(i).name() == name) return at(i).value();
......
......@@ -245,7 +245,6 @@ class EffectsParameterList: public QList < EffectParameter >
public:
EffectsParameterList();
bool hasParam(const QString &name) const;
void setParamValue(const QString &name, const QString &value);
QString paramValue(const QString &name, const QString &defaultValue = QString()) const;
void addParam(const QString &name, const QString &value);
......
......@@ -413,41 +413,6 @@ QMap< QString, QString > ProfilesDialog::getSettingsFromFile(const QString& path
}
}
// static
QMap< QString, QString > ProfilesDialog::getSettingsForProfile(const QString& profileName)
{
QStringList profilesNames;
QStringList profilesFiles;
QStringList profilesFilter;
profilesFilter << "*";
// List the Mlt profiles
profilesFiles = QDir(KdenliveSettings::mltpath()).entryList(profilesFilter, QDir::Files);
for (int i = 0; i < profilesFiles.size(); ++i) {
KConfig confFile(KdenliveSettings::mltpath() + profilesFiles.at(i), KConfig::SimpleConfig);
QMap< QString, QString > values = confFile.entryMap();
if (values.value("description") == profileName) {
values.insert("path", profilesFiles.at(i));
return values;
}
}
// List custom profiles
QStringList customProfiles = KGlobal::dirs()->findDirs("appdata", "profiles");
for (int i = 0; i < customProfiles.size(); ++i) {
QStringList profiles = QDir(customProfiles.at(i)).entryList(profilesFilter, QDir::Files);
for (int j = 0; j < profiles.size(); ++j) {
KConfig confFile(customProfiles.at(i) + profiles.at(j), KConfig::SimpleConfig);
QMap< QString, QString > values = confFile.entryMap();
if (values.value("description") == profileName) {
values.insert("path", customProfiles.at(i) + profiles.at(j));
return values;
}
}
}
return QMap< QString, QString >();
}
// static
bool ProfilesDialog::matchProfile(int width, int height, double fps, double par, bool isImage, const MltVideoProfile &profile)
{
......@@ -505,35 +470,6 @@ QMap <QString, QString> ProfilesDialog::getProfilesFromProperties(int width, int
return result;
}
// static
QString ProfilesDialog::getPathFromDescription(const QString& profileDesc)
{
QStringList profilesNames;
QStringList profilesFiles;
QStringList profilesFilter;
profilesFilter << "*";
// List the Mlt profiles
profilesFiles = QDir(KdenliveSettings::mltpath()).entryList(profilesFilter, QDir::Files);
for (int i = 0; i < profilesFiles.size(); ++i) {
KConfig confFile(KdenliveSettings::mltpath() + profilesFiles.at(i), KConfig::SimpleConfig);
QMap< QString, QString > values = confFile.entryMap();
if (values.value("description") == profileDesc) return profilesFiles.at(i);
}
// List custom profiles
QStringList customProfiles = KGlobal::dirs()->findDirs("appdata", "profiles");
for (int i = 0; i < customProfiles.size(); ++i) {
QStringList profiles = QDir(customProfiles.at(i)).entryList(profilesFilter, QDir::Files);
for (int j = 0; j < profiles.size(); ++j) {
KConfig confFile(customProfiles.at(i) + profiles.at(j), KConfig::SimpleConfig);
QMap< QString, QString > values = confFile.entryMap();
if (values.value("description") == profileDesc) return customProfiles.at(i) + profiles.at(j);
}
}
return QString();
}
// static
void ProfilesDialog::saveProfile(MltVideoProfile &profile, QString profilePath)
{
......
......@@ -35,9 +35,7 @@ public:
explicit ProfilesDialog(QString profilePath, QWidget * parent = 0);
void fillList(const QString &selectedProfile = QString());
static QMap< QString, QString > getSettingsForProfile(const QString &profileName);
static QMap< QString, QString > getSettingsFromFile(const QString& path);
static QString getPathFromDescription(const QString& profileDesc);
static MltVideoProfile getVideoProfile(const QString &name);
static QMap <QString, QString> getProfilesInfo();
static void saveProfile(MltVideoProfile &profile, QString profilePath = QString());
......
......@@ -143,16 +143,6 @@ bool DocClipBase::hasAudioThumb() const
return false;
}
void DocClipBase::slotClearAudioCache()
{
audioFrameCache.clear();
m_audioThumbCreated = false;
}
/*void DocClipBase::getClipMainThumb() {
if (m_thumbProd) m_thumbProd->getMainThumb(m_properties.value("thumbnail").toInt());
}*/
KThumb *DocClipBase::thumbProducer()
{
return m_thumbProd;
......@@ -238,11 +228,6 @@ const GenTime DocClipBase::maxDuration() const
return m_duration;
}
bool DocClipBase::hasFileSize() const
{
return true;
}
qulonglong DocClipBase::fileSize() const
{
return m_properties.value("file_size").toULongLong();
......@@ -350,11 +335,6 @@ const QString DocClipBase::shortInfo() const
}
void DocClipBase::setAudioThumbCreated(bool isDone)
{
m_audioThumbCreated = isDone;
}
void DocClipBase::updateAudioThumbnail(const audioByteArray& data)
{
//kDebug() << "CLIPBASE RECIEDVED AUDIO DATA*********************************************";
......@@ -429,19 +409,6 @@ QString DocClipBase::deleteSnapMarker(const GenTime & time)
}
GenTime DocClipBase::hasSnapMarkers(const GenTime & time)
{
QList < CommentedTime >::Iterator itt = m_snapMarkers.begin();
while (itt != m_snapMarkers.end()) {
if ((*itt).time() == time)
return time;
++itt;
}
return GenTime(0.0);
}
GenTime DocClipBase::findPreviousSnapMarker(const GenTime & currTime)
{
int it;
......@@ -1142,11 +1109,6 @@ QString DocClipBase::getHash(const QString &path)
return QString();
}
void DocClipBase::refreshThumbUrl()
{
if (m_thumbProd) m_thumbProd->updateThumbUrl(m_properties.value("file_hash"));
}
void DocClipBase::setProperty(const QString &key, const QString &value)
{
m_properties.insert(key, value);
......
......@@ -149,8 +149,6 @@ public:
uint numReferences() const {
return m_refcount;
}
/** Returns true if this clip has a meaningful filesize. */
bool hasFileSize() const;
/** Returns the filesize, or 0 if there is no appropriate filesize. */
qulonglong fileSize() const;
......@@ -162,10 +160,7 @@ public:
/** Returns the thumbnail producer used by this clip */
KThumb *thumbProducer();
/** Free cache data */
void slotClearAudioCache();
QString getClipHash() const;
void refreshThumbUrl();
const char *producerProperty(const char *name) const;
void setProducerProperty(const char *name, const char *data);
void resetProducerProperty(const char *name);
......@@ -236,7 +231,6 @@ private: // Private attributes
QList <CutZoneInfo> m_cutZones;
void setAudioThumbCreated(bool isDone);
/** Holds clip infos like fps, size,... */
QMap <QString, QString> m_properties;
/** Holds clip metadata like author, copyright,... */
......@@ -269,7 +263,6 @@ public slots:
QList < CommentedTime > commentedSnapMarkers() const;
GenTime findNextSnapMarker(const GenTime & currTime);
GenTime findPreviousSnapMarker(const GenTime & currTime);
GenTime hasSnapMarkers(const GenTime & time);
QString deleteSnapMarker(const GenTime & time);
void editSnapMarker(const GenTime & time, const QString &comment);
void addSnapMarker(const CommentedTime &marker);
......
......@@ -1006,22 +1006,6 @@ int KdenliveDoc::getFramePos(const QString &duration)
return m_timecode.getFrameCount(duration);
}
QString KdenliveDoc::producerName(const QString &id)
{
QString result = "unnamed";
QDomNodeList prods = producersList();
int ct = prods.count();
for (int i = 0; i < ct ; ++i) {
QDomElement e = prods.item(i).toElement();
if (e.attribute("id") != "black" && e.attribute("id") == id) {
result = e.attribute("name");
if (result.isEmpty()) result = KUrl(e.attribute("resource")).fileName();
break;
}
}
return result;
}
QDomDocument KdenliveDoc::toXml()
{
return m_document;
......
......@@ -64,7 +64,6 @@ public:
QDomDocument toXml();
//void setRenderer(Render *render);
QUndoStack *commandStack();
QString producerName(const QString &id);
Render *renderer();
QDomDocument m_guidesXml;
QDomElement guidesXml() const;
......
......@@ -52,13 +52,6 @@ DvdWizardChapters::~DvdWizardChapters()
}
}
// virtual
bool DvdWizardChapters::isComplete() const
{
return true;
}
void DvdWizardChapters::stopMonitor()
{
if (m_monitor) m_monitor->stop();
......
......@@ -37,7 +37,6 @@ class DvdWizardChapters : public QWizardPage
public:
explicit DvdWizardChapters(MonitorManager *manager, DVDFORMAT format, QWidget * parent = 0);
virtual ~DvdWizardChapters();
virtual bool isComplete() const;
void changeProfile(DVDFORMAT format);
void setPal(bool isPal);
void setVobFiles(DVDFORMAT format, const QStringList &movies, const QStringList &durations, const QStringList &chapters);
......
......@@ -470,15 +470,6 @@ void DvdWizardMenu::buildImage()
m_scene->addItem(m_background);
}
void DvdWizardMenu::checkBackground()
{
if (m_view.background_list->currentIndex() != 1) {
if (m_background->scene() != 0) m_scene->removeItem(m_background);
} else {
m_scene->addItem(m_background);
}
}
void DvdWizardMenu::buildButton()
{
DvdButton *button = NULL;
......
......@@ -190,7 +190,6 @@ private slots:
void buildButton();
void buildColor();
void buildImage();
void checkBackground();
void checkBackgroundType(int ix);
void updatePreview();
void buttonChanged();
......
......@@ -174,29 +174,6 @@ bool EffectsList::hasKeyFrames(const QDomElement &effect)
return false;
}
// static
bool EffectsList::hasSimpleKeyFrames(const QDomElement &effect)
{
QDomNodeList params = effect.elementsByTagName("parameter");
for (int i = 0; i < params.count(); ++i) {
QDomElement e = params.item(i).toElement();
if (e.attribute("type") == "simplekeyframe") return true;
}
return false;
}
// static
bool EffectsList::hasGeometryKeyFrames(const QDomElement &effect)
{
QDomNodeList params = effect.elementsByTagName("parameter");
for (int i = 0; i < params.count(); ++i) {
QDomElement param = params.item(i).toElement();
if (param.attribute("type") == "geometry" && !param.hasAttribute("fixed"))
return true;
}
return false;
}
void EffectsList::clone(const EffectsList &original)
{
setContent(original.toString());
......
......@@ -73,8 +73,6 @@ public:
QDomElement insert(QDomElement effect);
void updateEffect(const QDomElement &effect);
static bool hasKeyFrames(const QDomElement &effect);
static bool hasSimpleKeyFrames(const QDomElement &effect);
static bool hasGeometryKeyFrames(const QDomElement &effect);
static void setParameter(QDomElement effect, const QString &name, const QString &value);
static QString parameter(const QDomElement &effect, const QString &name);
/** @brief Change the value of a 'property' element from the effect node. */
......
......@@ -222,16 +222,6 @@ void DragValue::setRange(qreal min, qreal max)
m_doubleEdit->setRange(m_minimum, m_maximum);
}
void DragValue::setPrecision(int /*precision*/)
{
//TODO: Not implemented, in case we need double value, we should replace the KIntSpinBox with KDoubleNumInput...
/*m_precision = precision;
if (precision == 0)
m_edit->setValidator(new QIntValidator(m_minimum, m_maximum, this));
else
m_edit->setValidator(new QDoubleValidator(m_minimum, m_maximum, precision, this));*/
}
void DragValue::setStep(qreal step)
{
if (m_intEdit)
......
......@@ -95,8 +95,6 @@ public:
/** @brief Returns the minimum value */
qreal maximum() const;
/** @brief Sets the precision (number of decimals) to @param precision. */
void setPrecision(int precision);
/** @brief Sets the minimum value. */
void setMinimum(qreal min);
/** @brief Sets the maximum value. */
......
......@@ -546,23 +546,6 @@ void GraphicsSceneRectMove::setCursor(QCursor c)
}
}
void GraphicsSceneRectMove::setResizeCursor(qreal angle)
{
// % is not working...
while (angle < 0)
angle += 180;
while (angle >= 180)
angle -= 180;
if (angle > 157.5 || angle <= 22.5)
setCursor(Qt::SizeVerCursor);
else if (angle > 22.5 && angle <= 67.5)
setCursor(Qt::SizeFDiagCursor);
else if (angle > 67.5 && angle <= 112.5)
setCursor(Qt::SizeHorCursor);
else if (angle > 112.5 && angle <= 157.5)
setCursor(Qt::SizeBDiagCursor);
}
void GraphicsSceneRectMove::slotUpdateFontSize(int s)
{
m_fontSize = s;
......
......@@ -53,7 +53,6 @@ protected:
private:
void setCursor(QCursor);
void setResizeCursor(qreal angle);
double m_zoom;
QGraphicsItem* m_selectedItem;
resizeModes m_resizeMode;
......
......@@ -503,13 +503,13 @@ ParameterContainer::~ParameterContainer()
void ParameterContainer::meetDependency(const QString& name, const QString &type, const QString &value)
{
if (type == "curve") {
KisCurveWidget *curve = (KisCurveWidget*)m_valueItems[name];
KisCurveWidget *curve = static_cast<KisCurveWidget*>(m_valueItems[name]);
if (curve) {
const int color = value.toInt();
curve->setPixmap(QPixmap::fromImage(ColorTools::rgbCurvePlane(curve->size(), (ColorTools::ColorsRGB)(color == 3 ? 4 : color), 0.8)));
}
} else if (type == "bezier_spline") {
BezierSplineWidget *widget = (BezierSplineWidget*)m_valueItems[name];
BezierSplineWidget *widget = static_cast<BezierSplineWidget*>(m_valueItems[name]);
if (widget) {
widget->setMode((BezierSplineWidget::CurveModes)((int)(value.toDouble() * 10 + 0.5)));
}
......@@ -574,12 +574,12 @@ void ParameterContainer::updateTimecodeFormat()
if (KdenliveSettings::on_monitor_effects()) {
if (m_geometryWidget) m_geometryWidget->updateTimecodeFormat();
} else {
Geometryval *geom = ((Geometryval*)m_valueItems[paramName+"geometry"]);
Geometryval *geom = static_cast<Geometryval*>(m_valueItems[paramName+"geometry"]);
geom->updateTimecodeFormat();
}
break;
} else if (type == "position") {
PositionEdit *posi = ((PositionEdit*)m_valueItems[paramName+"position"]);
PositionEdit *posi = static_cast<PositionEdit*>(m_valueItems[paramName+"position"]);
posi->updateTimecodeFormat();
break;
#ifdef USE_QJSON
......@@ -620,7 +620,7 @@ void ParameterContainer::slotCollectAllParameters()
QString setValue;
if (type == "double" || type == "constant") {
DoubleParameterWidget *doubleparam = (DoubleParameterWidget*)m_valueItems.value(paramName);
DoubleParameterWidget *doubleparam = static_cast<DoubleParameterWidget*>(m_valueItems.value(paramName));
setValue = locale.toString(doubleparam->getValue());
} else if (type == "list") {
KComboBox *box = static_cast<Listval*>(m_valueItems.value(paramName))->list;
......@@ -629,23 +629,23 @@ void ParameterContainer::slotCollectAllParameters()
QCheckBox *box = static_cast<Boolval*>(m_valueItems.value(paramName))->checkBox;
setValue = box->checkState() == Qt::Checked ? "1" : "0" ;
} else if (type == "color") {
ChooseColorWidget *choosecolor = ((ChooseColorWidget*)m_valueItems.value(paramName));
ChooseColorWidget *choosecolor = static_cast<ChooseColorWidget*>(m_valueItems.value(paramName));
setValue = choosecolor->getColor();
if (pa.hasAttribute("paramprefix")) setValue.prepend(pa.attribute("paramprefix"));
} else if (type == "complex") {
ComplexParameter *complex = ((ComplexParameter*)m_valueItems.value(paramName));
ComplexParameter *complex = static_cast<ComplexParameter*>(m_valueItems.value(paramName));
namenode.item(i) = complex->getParamDesc();
} else if (type == "geometry") {
if (KdenliveSettings::on_monitor_effects()) {
if (m_geometryWidget) namenode.item(i).toElement().setAttribute("value", m_geometryWidget->getValue());
} else {
Geometryval *geom = ((Geometryval*)m_valueItems.value(paramName));
Geometryval *geom = static_cast<Geometryval*>(m_valueItems.value(paramName));
namenode.item(i).toElement().setAttribute("value", geom->getValue());
}
} else if (type == "addedgeometry") {
if (m_geometryWidget) namenode.item(i).toElement().setAttribute("value", m_geometryWidget->getExtraValue(namenode.item(i).toElement().attribute("name")));
} else if (type == "position") {
PositionEdit *pedit = ((PositionEdit*)m_valueItems.value(paramName));
PositionEdit *pedit = static_cast<PositionEdit*>(m_valueItems.value(paramName));
int pos = pedit->getPosition();
setValue = QString::number(pos);
if (m_effect.attribute("id") == "fadein" || m_effect.attribute("id") == "fade_from_black") {
......@@ -668,7 +668,7 @@ void ParameterContainer::slotCollectAllParameters()
setValue.clear();
}
} else if (type == "curve") {
KisCurveWidget *curve = ((KisCurveWidget*)m_valueItems.value(paramName));
KisCurveWidget *curve = static_cast<KisCurveWidget*>(m_valueItems.value(paramName));
QList<QPointF> points = curve->curve().points();
QString number = pa.attribute("number");
QString inName = pa.attribute("inpoints");
......@@ -692,7 +692,7 @@ void ParameterContainer::slotCollectAllParameters()
if (!depends.isEmpty())
meetDependency(paramName, type, EffectsList::parameter(m_effect, depends));
} else if (type == "bezier_spline") {
BezierSplineWidget *widget = (BezierSplineWidget*)m_valueItems.value(paramName);
BezierSplineWidget *widget = static_cast<BezierSplineWidget*>(m_valueItems.value(paramName));
setValue = widget->spline();
QString depends = pa.attribute("depends");
if (!depends.isEmpty())
......
......@@ -256,8 +256,6 @@ void ParameterPlotter::mousePressEvent(QMouseEvent * event)
}
m_movepoint = NULL;
}
} else if (event->button() == Qt::LeftButton) {
//menu for deleting or exact setup of point
}
}
......
......@@ -86,12 +86,6 @@ void BPoint::setH2(const QPointF &handle2)
}
}
void BPoint::keepInRange(qreal xMin, qreal xMax)
{
Q_UNUSED(xMin)
Q_UNUSED(xMax)
}
void BPoint::autoSetLinked()
{
// sometimes the angle is returned as 360°
......
......@@ -49,10 +49,8 @@ public:
void setH1(const QPointF &handle1);
/** @brief Sets h2 to @param handle2.
*
* If handlesLinked is true h1 is updated. */
void setH2(const QPointF &handle2);
void keepInRange(qreal xMin, qreal xMax);
/** @brief Sets handlesLinked to true if the handles are in a linked state (line through h1, p, h2) otherwise to false. */
void autoSetLinked();
......
......@@ -168,12 +168,6 @@ void KisCurveWidget::reset(void)
d->setCurveModified();
}
void KisCurveWidget::setCurveGuide(const QColor & color)
{
d->m_guideVisible = true;
d->m_colorGuide = color;
}
void KisCurveWidget::setPixmap(const QPixmap & pix)
{
d->m_pix = pix;
......
......@@ -65,14 +65,6 @@ public:
*/
void reset(void);
/**
* Enable the guide and set the guide color to the specified color.
*
* XXX: it seems that the guide feature isn't actually implemented yet?
*/
void setCurveGuide(const QColor & color);
/**
* Set a background pixmap. The background pixmap will be drawn under
* the grid and the curve.
......
......@@ -49,12 +49,6 @@ double GenTime::frames(double framesPerSecond) const
return floor(m_time * framesPerSecond + 0.5);
}
GenTime& GenTime::roundNearestFrame(double framesPerSecond)
{
m_time = floor((m_time *