mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 05:33:11 +00:00
Merge pull request #51947 from AnilBK/redundant-assignments
[cppcheck] Remove some redundant assignments.
This commit is contained in:
commit
88db541705
@ -7957,13 +7957,13 @@ void RenderingDeviceVulkan::compute_list_bind_uniform_set(ComputeListID p_list,
|
||||
|
||||
textures_to_storage[i]->used_in_compute = false;
|
||||
textures_to_storage[i]->used_in_raster = false;
|
||||
textures_to_storage[i]->used_in_compute = false;
|
||||
textures_to_storage[i]->used_in_transfer = false;
|
||||
|
||||
} else {
|
||||
src_access_flags = 0;
|
||||
textures_to_storage[i]->used_in_compute = false;
|
||||
textures_to_storage[i]->used_in_raster = false;
|
||||
textures_to_storage[i]->used_in_compute = false;
|
||||
textures_to_storage[i]->used_in_transfer = false;
|
||||
textures_to_storage[i]->used_in_frame = frames_drawn;
|
||||
}
|
||||
|
||||
|
@ -571,8 +571,6 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
||||
|
||||
List<String>::Element *I = args.front();
|
||||
|
||||
I = args.front();
|
||||
|
||||
while (I) {
|
||||
I->get() = unescape_cmdline(I->get().strip_edges());
|
||||
I = I->next();
|
||||
|
@ -1117,7 +1117,6 @@ GDScriptParser::EnumNode *GDScriptParser::parse_enum() {
|
||||
}
|
||||
item.custom_value = value;
|
||||
}
|
||||
item.rightmost_column = previous.rightmost_column;
|
||||
|
||||
item.index = enum_node->values.size();
|
||||
enum_node->values.push_back(item);
|
||||
|
@ -2150,7 +2150,6 @@ void TextEdit::_delete(bool p_word, bool p_all_to_right) {
|
||||
next_column = column;
|
||||
} else {
|
||||
// Delete one character
|
||||
next_column = caret.column < curline_len ? (caret.column + 1) : 0;
|
||||
if (caret_mid_grapheme_enabled) {
|
||||
next_column = caret.column < curline_len ? (caret.column + 1) : 0;
|
||||
} else {
|
||||
|
@ -2171,10 +2171,8 @@ EffectsRD::EffectsRD(bool p_prefer_raster_effects) {
|
||||
for (int pass = 0; pass < 4; pass++) {
|
||||
for (int subPass = 0; subPass < sub_pass_count; subPass++) {
|
||||
int a = pass;
|
||||
int b = subPass;
|
||||
|
||||
int spmap[5]{ 0, 1, 4, 3, 2 };
|
||||
b = spmap[subPass];
|
||||
int b = spmap[subPass];
|
||||
|
||||
float ca, sa;
|
||||
float angle0 = (float(a) + float(b) / float(sub_pass_count)) * Math_PI * 0.5f;
|
||||
|
Loading…
Reference in New Issue
Block a user