From f5854a7db30940bf9756208e39c10191e751ed18 Mon Sep 17 00:00:00 2001 From: yangziyong Date: Wed, 3 Jul 2024 10:02:32 +0800 Subject: [PATCH] codecheck_0703 Signed-off-by: yangziyong --- adapter/ohos/osal/pixel_map_ohos.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/adapter/ohos/osal/pixel_map_ohos.cpp b/adapter/ohos/osal/pixel_map_ohos.cpp index aba22194725..e476d4f732f 100644 --- a/adapter/ohos/osal/pixel_map_ohos.cpp +++ b/adapter/ohos/osal/pixel_map_ohos.cpp @@ -290,8 +290,6 @@ void PixelMapOhos::SavePixelMapToFile(const std::string& dst) const "_rowStride" + std::to_string(rowStride) + "_byteCount" + std::to_string(totalSize) + dst + ".dat"; auto path = ImageFileCache::GetInstance().ConstructCacheFilePath(filename); - char realPath[PATH_MAX] = { 0x00 }; - CHECK_NULL_VOID(realpath(path.c_str(), realPath)); std::ofstream outFile(path, std::fstream::out); if (!outFile.is_open()) { TAG_LOGW(AceLogTag::ACE_IMAGE, "write error, path=%{public}s", path.c_str());