Remove unused values from MessageLayoutContainer (#4081)
This commit is contained in:
@@ -38,6 +38,8 @@ CheckOptions:
|
|||||||
value: camelBack
|
value: camelBack
|
||||||
- key: readability-identifier-naming.MemberCase
|
- key: readability-identifier-naming.MemberCase
|
||||||
value: camelBack
|
value: camelBack
|
||||||
|
- key: readability-identifier-naming.PrivateMemberIgnoredRegexp
|
||||||
|
value: .*
|
||||||
- key: readability-identifier-naming.PrivateMemberSuffix
|
- key: readability-identifier-naming.PrivateMemberSuffix
|
||||||
value: _
|
value: _
|
||||||
- key: readability-identifier-naming.UnionCase
|
- key: readability-identifier-naming.UnionCase
|
||||||
|
|||||||
@@ -45,10 +45,6 @@ struct Margin {
|
|||||||
struct MessageLayoutContainer {
|
struct MessageLayoutContainer {
|
||||||
MessageLayoutContainer() = default;
|
MessageLayoutContainer() = default;
|
||||||
|
|
||||||
Margin margin = {4, 8, 4, 8};
|
|
||||||
bool centered = false;
|
|
||||||
bool enableCompactEmotes = false;
|
|
||||||
|
|
||||||
int getHeight() const;
|
int getHeight() const;
|
||||||
int getWidth() const;
|
int getWidth() const;
|
||||||
float getScale() const;
|
float getScale() const;
|
||||||
@@ -93,6 +89,8 @@ private:
|
|||||||
void _addElement(MessageLayoutElement *element, bool forceAdd = false);
|
void _addElement(MessageLayoutElement *element, bool forceAdd = false);
|
||||||
bool canCollapse();
|
bool canCollapse();
|
||||||
|
|
||||||
|
const Margin margin = {4, 8, 4, 8};
|
||||||
|
|
||||||
// variables
|
// variables
|
||||||
float scale_ = 1.f;
|
float scale_ = 1.f;
|
||||||
int width_ = 0;
|
int width_ = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user