aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/ir/SkSLVarDeclarationsStatement.h
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2017-11-01 10:47:43 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-07 14:28:18 +0000
commit1ae353c887fdf447e1fe627e3cd29f8fa62c2a05 (patch)
treea9d31f9c1b75efe0b543e15730432b938f2ebce7 /src/sksl/ir/SkSLVarDeclarationsStatement.h
parent427293c17ee807d014158990770a6efad9a9a4e6 (diff)
refactored SkSLVarDeclaration out of existence
Bug: skia: Change-Id: I3dbc08e6d759f6828a472246d4797babb6cc132e Reviewed-on: https://skia-review.googlesource.com/66147 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl/ir/SkSLVarDeclarationsStatement.h')
-rw-r--r--src/sksl/ir/SkSLVarDeclarationsStatement.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/sksl/ir/SkSLVarDeclarationsStatement.h b/src/sksl/ir/SkSLVarDeclarationsStatement.h
index 0258e66c6e..5128f7167d 100644
--- a/src/sksl/ir/SkSLVarDeclarationsStatement.h
+++ b/src/sksl/ir/SkSLVarDeclarationsStatement.h
@@ -22,12 +22,7 @@ struct VarDeclarationsStatement : public Statement {
, fDeclaration(std::move(decl)) {}
bool isEmpty() const override {
- for (const auto& s : fDeclaration->fVars) {
- if (!s->isEmpty()) {
- return false;
- }
- }
- return true;
+ return !fDeclaration->fVars.size();
}
String description() const override {