This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[Patch] Do not include <cassert> unnecessarily
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 17 Feb 2003 22:29:08 +0100
- Subject: [Patch] Do not include <cassert> unnecessarily
Hi,
I'm looking a bit into libstdc++/9582 (more about it later)
and noticed these two avoidable #includes: there are _no_ uses
of the macro assert in those files.
If nobody objects, I mean to commit the below to both trunk and 3_3.
Paolo.
//////////
2003-02-17 Paolo Carlini <pcarlini@unitus.it>
* src/locale-inst.cc: Do not include <cassert>.
* src/locale.cc: Likewise.
diff -urN libstdc++-v3-orig/src/locale-inst.cc libstdc++-v3/src/locale-inst.cc
--- libstdc++-v3-orig/src/locale-inst.cc 2003-02-11 22:58:27.000000000 +0100
+++ libstdc++-v3/src/locale-inst.cc 2003-02-17 22:02:30.000000000 +0100
@@ -34,7 +34,6 @@
#include <cstdlib>
#include <clocale>
#include <cstring>
-#include <cassert>
#include <locale>
namespace std
diff -urN libstdc++-v3-orig/src/locale.cc libstdc++-v3/src/locale.cc
--- libstdc++-v3-orig/src/locale.cc 2003-02-11 22:58:27.000000000 +0100
+++ libstdc++-v3/src/locale.cc 2003-02-17 22:02:19.000000000 +0100
@@ -28,7 +28,6 @@
#include <clocale>
#include <cstring>
-#include <cassert>
#include <cctype>
#include <cwctype> // For towupper, etc.
#include <locale>