Commit: d303556afb7073d11794ecb2d8ceeea24918a91d Author: Campbell Barton Date: Fri May 2 05:36:21 2014 +1000 https://developer.blender.org/rBd303556afb7073d11794ecb2d8ceeea24918a91d
Code cleanup: remove file handling headers where they arent needed =================================================================== M source/blender/blenkernel/intern/scene.c M source/blender/editors/curve/editfont.c M source/blender/editors/interface/interface_icons.c M source/blender/editors/space_file/filesel.c M source/blender/editors/space_graph/graph_draw.c M source/blender/editors/space_sequencer/sequencer_add.c M source/blender/editors/space_sequencer/sequencer_edit.c M source/blender/editors/space_sequencer/sequencer_select.c M source/blender/editors/space_text/text_header.c M source/blender/editors/transform/transform.c M source/blender/editors/transform/transform_constraints.c M source/blender/editors/transform/transform_conversions.c M source/blender/editors/transform/transform_manipulator.c =================================================================== diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c index b343f5e..1e7b0d3 100644 --- a/source/blender/blenkernel/intern/scene.c +++ b/source/blender/blenkernel/intern/scene.c @@ -34,12 +34,6 @@ #include <stdio.h> #include <string.h> -#ifndef WIN32 -# include <unistd.h> -#else -# include <io.h> -#endif - #include "MEM_guardedalloc.h" #include "DNA_anim_types.h" diff --git a/source/blender/editors/curve/editfont.c b/source/blender/editors/curve/editfont.c index eec728b..5c448ef 100644 --- a/source/blender/editors/curve/editfont.c +++ b/source/blender/editors/curve/editfont.c @@ -34,12 +34,6 @@ #include <wchar.h> #include <errno.h> -#ifndef WIN32 -# include <unistd.h> -#else -# include <io.h> -#endif - #include "MEM_guardedalloc.h" #include "BLI_blenlib.h" diff --git a/source/blender/editors/interface/interface_icons.c b/source/blender/editors/interface/interface_icons.c index f951b16..546b2b8 100644 --- a/source/blender/editors/interface/interface_icons.c +++ b/source/blender/editors/interface/interface_icons.c @@ -27,19 +27,10 @@ * \ingroup edinterface */ - #include <math.h> #include <stdlib.h> #include <string.h> -#ifndef WIN32 -# include <unistd.h> -#else -# include <io.h> -# include <direct.h> -# include "BLI_winstuff.h" -#endif - #include "MEM_guardedalloc.h" #include "GPU_extensions.h" diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c index 7a415c8..e8371d7 100644 --- a/source/blender/editors/space_file/filesel.c +++ b/source/blender/editors/space_file/filesel.c @@ -45,7 +45,6 @@ # include <unistd.h> # include <sys/times.h> # include <dirent.h> -# include <unistd.h> #endif #include "DNA_space_types.h" diff --git a/source/blender/editors/space_graph/graph_draw.c b/source/blender/editors/space_graph/graph_draw.c index 447e0cd..83f87eb 100644 --- a/source/blender/editors/space_graph/graph_draw.c +++ b/source/blender/editors/space_graph/graph_draw.c @@ -32,13 +32,6 @@ #include <string.h> #include <float.h> -#ifndef _WIN32 -#include <unistd.h> -#else -#include <io.h> -#endif - - #include "BLI_blenlib.h" #include "BLI_utildefines.h" diff --git a/source/blender/editors/space_sequencer/sequencer_add.c b/source/blender/editors/space_sequencer/sequencer_add.c index 4ade067..edae81a 100644 --- a/source/blender/editors/space_sequencer/sequencer_add.c +++ b/source/blender/editors/space_sequencer/sequencer_add.c @@ -27,18 +27,10 @@ * \ingroup spseq */ - #include <stdlib.h> #include <math.h> #include <string.h> -#ifndef WIN32 -#include <unistd.h> -#else -#include <io.h> -#endif -#include <sys/types.h> - #include "MEM_guardedalloc.h" #include "BLI_blenlib.h" diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c index af1a23d..50efa88 100644 --- a/source/blender/editors/space_sequencer/sequencer_edit.c +++ b/source/blender/editors/space_sequencer/sequencer_edit.c @@ -32,13 +32,6 @@ #include <math.h> #include <string.h> -#ifndef WIN32 -#include <unistd.h> -#else -#include <io.h> -#endif -#include <sys/types.h> - #include "MEM_guardedalloc.h" #include "BLI_blenlib.h" diff --git a/source/blender/editors/space_sequencer/sequencer_select.c b/source/blender/editors/space_sequencer/sequencer_select.c index 7d7a81a..9826ef1 100644 --- a/source/blender/editors/space_sequencer/sequencer_select.c +++ b/source/blender/editors/space_sequencer/sequencer_select.c @@ -32,13 +32,6 @@ #include <math.h> #include <string.h> -#ifndef WIN32 -#include <unistd.h> -#else -#include <io.h> -#endif -#include <sys/types.h> - #include "BLI_blenlib.h" #include "BLI_utildefines.h" diff --git a/source/blender/editors/space_text/text_header.c b/source/blender/editors/space_text/text_header.c index aaeea40..b1d57f5 100644 --- a/source/blender/editors/space_text/text_header.c +++ b/source/blender/editors/space_text/text_header.c @@ -28,14 +28,6 @@ * \ingroup sptext */ - - -/* file time checking */ - -#ifndef _WIN32 -#else -#endif - #include "DNA_windowmanager_types.h" #include "MEM_guardedalloc.h" @@ -51,10 +43,6 @@ #include "WM_types.h" -#ifdef WITH_PYTHON -// XXX #include "BPY_menus.h" -#endif - #include "text_intern.h" /* ************************ header area region *********************** */ diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 2cd8b20..7cdc329 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -35,12 +35,6 @@ #include <math.h> #include <float.h> -#ifndef WIN32 -# include <unistd.h> -#else -# include <io.h> -#endif - #include "MEM_guardedalloc.h" #include "DNA_anim_types.h" diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c index 749c45e..79f266d 100644 --- a/source/blender/editors/transform/transform_constraints.c +++ b/source/blender/editors/transform/transform_constraints.c @@ -34,12 +34,6 @@ #include <string.h> #include <math.h> -#ifndef WIN32 -# include <unistd.h> -#else -# include <io.h> -#endif - #include "DNA_object_types.h" #include "DNA_scene_types.h" #include "DNA_screen_types.h" diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index d8b5888..c3a8784 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -29,12 +29,6 @@ * \ingroup edtransform */ - -#ifndef WIN32 -#include <unistd.h> -#else -#include <io.h> -#endif #include <string.h> #include <math.h> diff --git a/source/blender/editors/transform/transform_manipulator.c b/source/blender/editors/transform/transform_manipulator.c index 711e73a..f94fec3 100644 --- a/source/blender/editors/transform/transform_manipulator.c +++ b/source/blender/editors/transform/transform_manipulator.c @@ -35,12 +35,6 @@ #include <math.h> #include <float.h> -#ifndef WIN32 -#include <unistd.h> -#else -#include <io.h> -#endif - #include "DNA_armature_types.h" #include "DNA_curve_types.h" #include "DNA_lattice_types.h" _______________________________________________ Bf-blender-cvs mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-blender-cvs
