From 15d177a6ac81745f473e0807faf2da634dfb0fcd Mon Sep 17 00:00:00 2001
From: Lioncash <mathew1800@gmail.com>
Date: Thu, 17 Oct 2019 20:06:53 -0400
Subject: [PATCH] video_core/shader/ast: Make Indent() private

It's never used outside of this class, so we can narrow its scope down.
---
 src/video_core/shader/ast.cpp | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/video_core/shader/ast.cpp b/src/video_core/shader/ast.cpp
index ea121e9d5..f409706cc 100644
--- a/src/video_core/shader/ast.cpp
+++ b/src/video_core/shader/ast.cpp
@@ -326,15 +326,6 @@ public:
         inner += fmt::format("{}({}) -> break;\n", Indent(), expr_parser.GetResult());
     }
 
-    std::string& Indent() {
-        if (memo_scope == scope) {
-            return tabs_memo;
-        }
-        tabs_memo = tabs.substr(0, scope * 2);
-        memo_scope = scope;
-        return tabs_memo;
-    }
-
     void Visit(ASTNode& node) {
         std::visit(*this, *node->GetInnerData());
     }
@@ -344,6 +335,15 @@ public:
     }
 
 private:
+    std::string& Indent() {
+        if (memo_scope == scope) {
+            return tabs_memo;
+        }
+        tabs_memo = tabs.substr(0, scope * 2);
+        memo_scope = scope;
+        return tabs_memo;
+    }
+
     std::string inner{};
     u32 scope{};