global: DRY includes of assert.h

parent 882220bf
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
*/ */
#include "common.h" #include "common.h"
#include <assert.h>
/** /**
* The following example demonstrates how to add files with libgit2. * The following example demonstrates how to add files with libgit2.
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
*/ */
#include "common.h" #include "common.h"
#include <assert.h>
/* Define the printf format specifer to use for size_t output */ /* Define the printf format specifer to use for size_t output */
#if defined(_MSC_VER) || defined(__MINGW32__) #if defined(_MSC_VER) || defined(__MINGW32__)
......
...@@ -12,7 +12,9 @@ ...@@ -12,7 +12,9 @@
* <http://creativecommons.org/publicdomain/zero/1.0/>. * <http://creativecommons.org/publicdomain/zero/1.0/>.
*/ */
#include <assert.h>
#include "common.h"
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
...@@ -25,7 +27,6 @@ ...@@ -25,7 +27,6 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include "common.h"
void check_lg2(int error, const char *message, const char *extra) void check_lg2(int error, const char *message, const char *extra)
{ {
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#ifndef INCLUDE_examples_common_h__ #ifndef INCLUDE_examples_common_h__
#define INCLUDE_examples_common_h__ #define INCLUDE_examples_common_h__
#include <assert.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
*/ */
#include "common.h" #include "common.h"
#include <assert.h>
/** /**
* The following example partially reimplements the `git describe` command * The following example partially reimplements the `git describe` command
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
*/ */
#include "common.h" #include "common.h"
#include <assert.h>
/** The following example demonstrates how to do merges with libgit2. /** The following example demonstrates how to do merges with libgit2.
* *
......
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
#include "apply.h" #include "apply.h"
#include <assert.h>
#include "git2/apply.h" #include "git2/apply.h"
#include "git2/patch.h" #include "git2/patch.h"
#include "git2/filter.h" #include "git2/filter.h"
......
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
#include "checkout.h" #include "checkout.h"
#include <assert.h>
#include "git2/repository.h" #include "git2/repository.h"
#include "git2/refs.h" #include "git2/refs.h"
#include "git2/tree.h" #include "git2/tree.h"
......
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
#include "clone.h" #include "clone.h"
#include <assert.h>
#include "git2/clone.h" #include "git2/clone.h"
#include "git2/remote.h" #include "git2/remote.h"
#include "git2/revparse.h" #include "git2/revparse.h"
......
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
#include "common.h" #include "common.h"
#include <assert.h>
#include "buffer.h" #include "buffer.h"
#include "tree.h" #include "tree.h"
#include "refdb.h" #include "refdb.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment