tint/transform: Remove commented out code
Change-Id: Ie5fc57bdcc17e4b96173e43e0a230d4f00f58a93 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/113421 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
parent
4d56b48bbf
commit
48802bb9ea
|
@ -121,10 +121,6 @@ struct SpirvAtomic::State {
|
|||
// If we need to change structure members, then fork them.
|
||||
if (!forked_structs.empty()) {
|
||||
ctx.ReplaceAll([&](const ast::Struct* str) {
|
||||
// Always emit the original structure. This allows unrelated usage of the structure
|
||||
// to continue working.
|
||||
// auto* original = ctx.CloneWithoutTransform(str);
|
||||
|
||||
// Is `str` a structure we need to fork?
|
||||
if (auto it = forked_structs.find(str); it != forked_structs.end()) {
|
||||
const auto& forked = it->second;
|
||||
|
@ -144,8 +140,6 @@ struct SpirvAtomic::State {
|
|||
}
|
||||
b.Structure(forked.name, std::move(members));
|
||||
}
|
||||
|
||||
// return original;
|
||||
return nullptr;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue