[libc-commits] [libc] [libc]: Remove unused includes from strfrom*.cpp (PR #86657)

Vinayak Dev via libc-commits libc-commits at lists.llvm.org
Tue Mar 26 05:08:21 PDT 2024


https://github.com/vinayakdsci created https://github.com/llvm/llvm-project/pull/86657

Removes unused header includes from `strfrom*()` implementation files.

>From a083df45786cee8e9c1471bd870bfec9229900a3 Mon Sep 17 00:00:00 2001
From: Vinayak Dev <vinayakdev.sci at gmail.com>
Date: Tue, 26 Mar 2024 17:35:11 +0530
Subject: [PATCH] [libc]: Remove unused includes from strfrom*.cpp

---
 libc/src/stdlib/strfromd.cpp | 3 ---
 libc/src/stdlib/strfromf.cpp | 3 ---
 libc/src/stdlib/strfroml.cpp | 3 ---
 3 files changed, 9 deletions(-)

diff --git a/libc/src/stdlib/strfromd.cpp b/libc/src/stdlib/strfromd.cpp
index 1d02a7ad112442..329f6fdcaff731 100644
--- a/libc/src/stdlib/strfromd.cpp
+++ b/libc/src/stdlib/strfromd.cpp
@@ -9,9 +9,6 @@
 #include "src/stdlib/strfromd.h"
 #include "src/stdlib/str_from_util.h"
 
-#include <stdarg.h>
-#include <stddef.h>
-
 namespace LIBC_NAMESPACE {
 
 LLVM_LIBC_FUNCTION(int, strfromd,
diff --git a/libc/src/stdlib/strfromf.cpp b/libc/src/stdlib/strfromf.cpp
index 40eff87eb454c5..80e1d74797c80b 100644
--- a/libc/src/stdlib/strfromf.cpp
+++ b/libc/src/stdlib/strfromf.cpp
@@ -9,9 +9,6 @@
 #include "src/stdlib/strfromf.h"
 #include "src/stdlib/str_from_util.h"
 
-#include <stdarg.h>
-#include <stddef.h>
-
 namespace LIBC_NAMESPACE {
 
 LLVM_LIBC_FUNCTION(int, strfromf,
diff --git a/libc/src/stdlib/strfroml.cpp b/libc/src/stdlib/strfroml.cpp
index 6b8781e7c04e11..f0bc9354c7ad76 100644
--- a/libc/src/stdlib/strfroml.cpp
+++ b/libc/src/stdlib/strfroml.cpp
@@ -9,9 +9,6 @@
 #include "src/stdlib/strfroml.h"
 #include "src/stdlib/str_from_util.h"
 
-#include <stdarg.h>
-#include <stddef.h>
-
 namespace LIBC_NAMESPACE {
 
 LLVM_LIBC_FUNCTION(int, strfroml,



More information about the libc-commits mailing list