mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Remove dead code
This commit is contained in:
parent
7251a20dfb
commit
a569985315
2 changed files with 0 additions and 20 deletions
|
@ -168,11 +168,6 @@ int ImageLayoutElement::getXFromIndex(int index)
|
|||
}
|
||||
}
|
||||
|
||||
boost::optional<QPixmap> ImageLayoutElement::imagePreview() const
|
||||
{
|
||||
return this->image_->pixmap();
|
||||
}
|
||||
|
||||
//
|
||||
// TEXT
|
||||
//
|
||||
|
@ -296,11 +291,6 @@ int TextLayoutElement::getXFromIndex(int index)
|
|||
}
|
||||
}
|
||||
|
||||
boost::optional<QPixmap> TextLayoutElement::imagePreview() const
|
||||
{
|
||||
return boost::none;
|
||||
}
|
||||
|
||||
// TEXT ICON
|
||||
TextIconLayoutElement::TextIconLayoutElement(MessageElement &creator,
|
||||
const QString &_line1,
|
||||
|
@ -378,10 +368,4 @@ int TextIconLayoutElement::getXFromIndex(int index)
|
|||
}
|
||||
}
|
||||
|
||||
boost::optional<QPixmap> TextIconLayoutElement::imagePreview() const
|
||||
{
|
||||
return boost::none;
|
||||
}
|
||||
|
||||
|
||||
} // namespace chatterino
|
||||
|
|
|
@ -41,7 +41,6 @@ public:
|
|||
virtual void paintAnimated(QPainter &painter, int yOffset) = 0;
|
||||
virtual int getMouseOverIndex(const QPoint &abs) const = 0;
|
||||
virtual int getXFromIndex(int index) = 0;
|
||||
virtual boost::optional<QPixmap> imagePreview() const = 0;
|
||||
|
||||
const Link &getLink() const;
|
||||
const QString &getText() const;
|
||||
|
@ -72,7 +71,6 @@ protected:
|
|||
void paintAnimated(QPainter &painter, int yOffset) override;
|
||||
int getMouseOverIndex(const QPoint &abs) const override;
|
||||
int getXFromIndex(int index) override;
|
||||
boost::optional<QPixmap> imagePreview() const override;
|
||||
|
||||
private:
|
||||
ImagePtr image_;
|
||||
|
@ -96,7 +94,6 @@ protected:
|
|||
void paintAnimated(QPainter &painter, int yOffset) override;
|
||||
int getMouseOverIndex(const QPoint &abs) const override;
|
||||
int getXFromIndex(int index) override;
|
||||
boost::optional<QPixmap> imagePreview() const override;
|
||||
|
||||
private:
|
||||
QColor color_;
|
||||
|
@ -122,7 +119,6 @@ protected:
|
|||
void paintAnimated(QPainter &painter, int yOffset) override;
|
||||
int getMouseOverIndex(const QPoint &abs) const override;
|
||||
int getXFromIndex(int index) override;
|
||||
boost::optional<QPixmap> imagePreview() const override;
|
||||
|
||||
private:
|
||||
float scale;
|
||||
|
|
Loading…
Reference in a new issue