From e412c8d8c6adf0491ac03fa4f9d5eb268cbfa93d Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Thu, 17 Nov 2022 19:16:24 +0000 Subject: [PATCH] Remove tint::Source::data_view It's just a view on another field. It doesn't add anything. Change-Id: I52c1939c455d48c067c9c31938be87671328d263 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/110560 Commit-Queue: Ben Clayton Reviewed-by: Dan Sinclair Auto-Submit: Ben Clayton Kokoro: Kokoro --- src/tint/source.cc | 7 ++----- src/tint/source.h | 2 -- src/tint/source_test.cc | 3 --- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/tint/source.cc b/src/tint/source.cc index 5dbed6cf37..6a10de523d 100644 --- a/src/tint/source.cc +++ b/src/tint/source.cc @@ -113,13 +113,10 @@ std::vector CopyRelativeStringViews(const std::vector lines; }; diff --git a/src/tint/source_test.cc b/src/tint/source_test.cc index b1241fb30e..df14a31af5 100644 --- a/src/tint/source_test.cc +++ b/src/tint/source_test.cc @@ -31,7 +31,6 @@ using SourceFileContentTest = testing::Test; TEST_F(SourceFileContentTest, Init) { Source::FileContent fc(kSource); EXPECT_EQ(fc.data, kSource); - EXPECT_EQ(fc.data_view, kSource); ASSERT_EQ(fc.lines.size(), 3u); EXPECT_EQ(fc.lines[0], "line one"); EXPECT_EQ(fc.lines[1], "line two"); @@ -43,7 +42,6 @@ TEST_F(SourceFileContentTest, CopyInit) { Source::FileContent fc{*src}; src.reset(); EXPECT_EQ(fc.data, kSource); - EXPECT_EQ(fc.data_view, kSource); ASSERT_EQ(fc.lines.size(), 3u); EXPECT_EQ(fc.lines[0], "line one"); EXPECT_EQ(fc.lines[1], "line two"); @@ -55,7 +53,6 @@ TEST_F(SourceFileContentTest, MoveInit) { Source::FileContent fc{std::move(*src)}; src.reset(); EXPECT_EQ(fc.data, kSource); - EXPECT_EQ(fc.data_view, kSource); ASSERT_EQ(fc.lines.size(), 3u); EXPECT_EQ(fc.lines[0], "line one"); EXPECT_EQ(fc.lines[1], "line two");