summaryrefslogtreecommitdiff
path: root/common/libs/utils/environment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/libs/utils/environment.cpp')
-rw-r--r--common/libs/utils/environment.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/common/libs/utils/environment.cpp b/common/libs/utils/environment.cpp
deleted file mode 100644
index 11a0b8c1..00000000
--- a/common/libs/utils/environment.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (C) 2018 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "common/libs/utils/environment.h"
-
-#include <stdlib.h>
-
-namespace cvd {
-
-std::string StringFromEnv(const std::string& varname,
- const std::string& defval) {
- const char* const valstr = getenv(varname.c_str());
- if (!valstr) {
- return defval;
- }
- return valstr;
-}
-
-} // namespace cvd