From e6e9b98f665825866c0fc719c85d24a0a89b9108 Mon Sep 17 00:00:00 2001 From: pajlada Date: Sun, 23 Oct 2022 10:31:38 +0200 Subject: [PATCH] Remove unused values from MessageLayoutContainer (#4081) --- .clang-tidy | 2 ++ src/messages/layouts/MessageLayoutContainer.hpp | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 4c3f4adb5..7ec4b791f 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -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 diff --git a/src/messages/layouts/MessageLayoutContainer.hpp b/src/messages/layouts/MessageLayoutContainer.hpp index b70ab9ec1..c990058a6 100644 --- a/src/messages/layouts/MessageLayoutContainer.hpp +++ b/src/messages/layouts/MessageLayoutContainer.hpp @@ -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;