Skip to content

Commit

Permalink
Fix -Wunused-variable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Jul 13, 2021
1 parent 91bfecd commit 18b6e54
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions codegen/emoji/data_read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ namespace codegen {
namespace emoji {
namespace {

constexpr auto ColorMask = 0xD83CDFFBU;

using Line = std::vector<QString>;
using Part = std::vector<Line>;
using Section = std::vector<Part>;
Expand Down
4 changes: 0 additions & 4 deletions codegen/emoji/generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ constexpr auto kErrorCantWritePath = 851;

constexpr auto kOriginalBits = 12;
constexpr auto kIdSizeBits = 6;
constexpr auto kColumnBits = 5;
constexpr auto kRowBits = 7;

common::ProjectInfo Project = {
"codegen_emoji",
Expand Down Expand Up @@ -315,8 +313,6 @@ QImage Generator::generateImage(int imageIndex) {

auto emojiCount = int(data_.list.size());
auto columnsCount = kEmojiInRow;
auto fullRowsCount = (emojiCount / columnsCount) + ((emojiCount % columnsCount) ? 1 : 0);
auto imagesCount = (fullRowsCount / kEmojiRowsInFile) + ((fullRowsCount % kEmojiRowsInFile) ? 1 : 0);

auto sourceSize = kScaleFromLarge ? kLargeEmojiSize : kEmojiSize;

Expand Down
1 change: 0 additions & 1 deletion codegen/lang/generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ struct phrase;\n\
std::set<QString> producersDeclared;
for (auto &entry : langpack_.entries) {
const auto isPlural = !entry.keyBase.isEmpty();
const auto &key = entry.key;
auto tags = QStringList();
auto producerArgs = QStringList();
auto currentArgs = QStringList();
Expand Down
1 change: 0 additions & 1 deletion codegen/style/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ namespace {
constexpr int kErrorIncludePathExpected = 901;
constexpr int kErrorOutputPathExpected = 902;
constexpr int kErrorInputPathExpected = 903;
constexpr int kErrorSingleInputPathExpected = 904;
constexpr int kErrorWorkingPathExpected = 905;

} // namespace
Expand Down

0 comments on commit 18b6e54

Please sign in to comment.