Remove unused values from MessageLayoutContainer (#4081)

This commit is contained in:
pajlada 2022-10-23 10:31:38 +02:00 committed by GitHub
parent 53ec66ff8e
commit e6e9b98f66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -38,6 +38,8 @@ CheckOptions:
value: camelBack
- key: readability-identifier-naming.MemberCase
value: camelBack
- key: readability-identifier-naming.PrivateMemberIgnoredRegexp
value: .*
- key: readability-identifier-naming.PrivateMemberSuffix
value: _
- key: readability-identifier-naming.UnionCase

View file

@ -45,10 +45,6 @@ struct Margin {
struct MessageLayoutContainer {
MessageLayoutContainer() = default;
Margin margin = {4, 8, 4, 8};
bool centered = false;
bool enableCompactEmotes = false;
int getHeight() const;
int getWidth() const;
float getScale() const;
@ -93,6 +89,8 @@ private:
void _addElement(MessageLayoutElement *element, bool forceAdd = false);
bool canCollapse();
const Margin margin = {4, 8, 4, 8};
// variables
float scale_ = 1.f;
int width_ = 0;