[shuffle] Remove the `utils::` namespace.
This CL strips the `utils::` namespace declaration and usages.
Bug: tint:1988
Change-Id: I860b9cae052bec9eed0879fdda6ff2a05534af0e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/143421
Auto-Submit: Dan Sinclair <dsinclair@chromium.org>
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: David Neto <dneto@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
diff --git a/src/tint/utils/file/tmpfile.h b/src/tint/utils/file/tmpfile.h
index ed83918..38cdf71 100644
--- a/src/tint/utils/file/tmpfile.h
+++ b/src/tint/utils/file/tmpfile.h
@@ -19,7 +19,7 @@
#include "src/tint/utils/text/string_stream.h"
-namespace tint::utils {
+namespace tint {
/// TmpFile constructs a temporary file that can be written to, and is
/// automatically deleted on destruction.
@@ -56,7 +56,7 @@
/// @return a reference to this TmpFile
template <typename T>
inline TmpFile& operator<<(T&& data) {
- utils::StringStream ss;
+ StringStream ss;
ss << data;
std::string str = ss.str();
Append(str.data(), str.size());
@@ -70,6 +70,6 @@
std::string path_;
};
-} // namespace tint::utils
+} // namespace tint
#endif // SRC_TINT_UTILS_FILE_TMPFILE_H_
diff --git a/src/tint/utils/file/tmpfile_other.cc b/src/tint/utils/file/tmpfile_other.cc
index 1a7da4c..1f3ef9d 100644
--- a/src/tint/utils/file/tmpfile_other.cc
+++ b/src/tint/utils/file/tmpfile_other.cc
@@ -14,7 +14,7 @@
#include "src/tint/utils/file/tmpfile.h"
-namespace tint::utils {
+namespace tint {
TmpFile::TmpFile(std::string) {}
@@ -24,4 +24,4 @@
return false;
}
-} // namespace tint::utils
+} // namespace tint
diff --git a/src/tint/utils/file/tmpfile_posix.cc b/src/tint/utils/file/tmpfile_posix.cc
index f26747d..9d6505b 100644
--- a/src/tint/utils/file/tmpfile_posix.cc
+++ b/src/tint/utils/file/tmpfile_posix.cc
@@ -19,7 +19,7 @@
#include "src/tint/utils/debug/debug.h"
-namespace tint::utils {
+namespace tint {
namespace {
@@ -63,4 +63,4 @@
return false;
}
-} // namespace tint::utils
+} // namespace tint
diff --git a/src/tint/utils/file/tmpfile_test.cc b/src/tint/utils/file/tmpfile_test.cc
index e2fff23..b8fea6d 100644
--- a/src/tint/utils/file/tmpfile_test.cc
+++ b/src/tint/utils/file/tmpfile_test.cc
@@ -18,7 +18,7 @@
#include "gtest/gtest.h"
-namespace tint::utils {
+namespace tint {
namespace {
TEST(TmpFileTest, WriteReadAppendDelete) {
@@ -85,4 +85,4 @@
}
} // namespace
-} // namespace tint::utils
+} // namespace tint
diff --git a/src/tint/utils/file/tmpfile_windows.cc b/src/tint/utils/file/tmpfile_windows.cc
index 0a4598e..8c990e3 100644
--- a/src/tint/utils/file/tmpfile_windows.cc
+++ b/src/tint/utils/file/tmpfile_windows.cc
@@ -17,7 +17,7 @@
#include <stdio.h>
#include <cstdio>
-namespace tint::utils {
+namespace tint {
namespace {
@@ -58,4 +58,4 @@
return true;
}
-} // namespace tint::utils
+} // namespace tint