This is an automated email from the ASF dual-hosted git repository.

guangmingchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new 0e7c6448 feat: Remove unused code (#3087)
0e7c6448 is described below

commit 0e7c6448a4e0ecfe9926b247262fb841b87db5f8
Author: kkkshine <[email protected]>
AuthorDate: Wed Sep 10 19:57:58 2025 +0800

    feat: Remove unused code (#3087)
---
 src/butil/base_paths.cc | 46 ----------------------------------------------
 1 file changed, 46 deletions(-)

diff --git a/src/butil/base_paths.cc b/src/butil/base_paths.cc
deleted file mode 100644
index 24a028b6..00000000
--- a/src/butil/base_paths.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "butil/base_paths.h"
-
-#include "butil/file_util.h"
-#include "butil/files/file_path.h"
-#include "butil/path_service.h"
-
-namespace butil {
-
-bool PathProvider(int key, FilePath* result) {
-  // NOTE: DIR_CURRENT is a special case in PathService::Get
-
-  switch (key) {
-    case DIR_EXE:
-      PathService::Get(FILE_EXE, result);
-      *result = result->DirName();
-      return true;
-    case DIR_MODULE:
-      PathService::Get(FILE_MODULE, result);
-      *result = result->DirName();
-      return true;
-    case DIR_TEMP:
-      if (!GetTempDir(result))
-        return false;
-      return true;
-    case butil::DIR_HOME:
-      *result = GetHomeDir();
-      return true;
-    case DIR_TEST_DATA:
-      if (!PathService::Get(DIR_SOURCE_ROOT, result))
-        return false;
-      *result = result->Append(FILE_PATH_LITERAL("base"));
-      *result = result->Append(FILE_PATH_LITERAL("test"));
-      *result = result->Append(FILE_PATH_LITERAL("data"));
-      if (!PathExists(*result))  // We don't want to create this.
-        return false;
-      return true;
-    default:
-      return false;
-  }
-}
-
-}  // namespace butil


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to