From 0af316cefce7fa03051e19d50cbb5a9df0b35885 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Mon, 19 Oct 2020 01:56:55 +0000 Subject: [PATCH] refactor --- src/tsdb/src/tsdbCommit.c | 7 ------- src/tsdb/src/tsdbFile.c | 4 ---- src/tsdb/src/tsdbMain.c | 5 ----- src/tsdb/src/tsdbMemTable.c | 3 --- src/tsdb/src/tsdbMeta.c | 1 - src/tsdb/src/tsdbRead.c | 2 -- src/tsdb/src/tsdbReadUtil.c | 6 ------ src/tsdb/src/tsdbUtil.c | 3 --- 8 files changed, 31 deletions(-) diff --git a/src/tsdb/src/tsdbCommit.c b/src/tsdb/src/tsdbCommit.c index 24ac32d9a1..19de40bad0 100644 --- a/src/tsdb/src/tsdbCommit.c +++ b/src/tsdb/src/tsdbCommit.c @@ -13,13 +13,6 @@ * along with this program. If not, see . */ -#include -#include -#include -#include -#include -#include - #include "tchecksum.h" #include "tscompression.h" #include "tsdbMain.h" diff --git a/src/tsdb/src/tsdbFile.c b/src/tsdb/src/tsdbFile.c index 4ce77c6d9c..903f794c06 100644 --- a/src/tsdb/src/tsdbFile.c +++ b/src/tsdb/src/tsdbFile.c @@ -13,11 +13,7 @@ * along with this program. If not, see . */ #define _DEFAULT_SOURCE -#include -#include -#include #include -#include #define TAOS_RANDOM_FILE_FAIL_TEST diff --git a/src/tsdb/src/tsdbMain.c b/src/tsdb/src/tsdbMain.c index 0974b00041..2074ff8ba5 100644 --- a/src/tsdb/src/tsdbMain.c +++ b/src/tsdb/src/tsdbMain.c @@ -12,11 +12,6 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -#include -#include -#include -#include - // no test file errors here #include "tsdbMain.h" #include "os.h" diff --git a/src/tsdb/src/tsdbMemTable.c b/src/tsdb/src/tsdbMemTable.c index a87378e605..2f7e92c35b 100644 --- a/src/tsdb/src/tsdbMemTable.c +++ b/src/tsdb/src/tsdbMemTable.c @@ -12,9 +12,6 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -#include -#include - #include "tsdb.h" #include "tsdbMain.h" diff --git a/src/tsdb/src/tsdbMeta.c b/src/tsdb/src/tsdbMeta.c index c832772d25..36d29deca4 100644 --- a/src/tsdb/src/tsdbMeta.c +++ b/src/tsdb/src/tsdbMeta.c @@ -12,7 +12,6 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -#include #include "hash.h" #include "taosdef.h" #include "tchecksum.h" diff --git a/src/tsdb/src/tsdbRead.c b/src/tsdb/src/tsdbRead.c index 6ffd79e6cc..5e521ed98d 100644 --- a/src/tsdb/src/tsdbRead.c +++ b/src/tsdb/src/tsdbRead.c @@ -12,8 +12,6 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -#include - #include "os.h" #include "tulog.h" #include "talgo.h" diff --git a/src/tsdb/src/tsdbReadUtil.c b/src/tsdb/src/tsdbReadUtil.c index ec3309eb13..cfa8167496 100644 --- a/src/tsdb/src/tsdbReadUtil.c +++ b/src/tsdb/src/tsdbReadUtil.c @@ -12,12 +12,6 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -#include -#include -#include -#include -#include - #include "tchecksum.h" #include "tdataformat.h" #include "tscompression.h" diff --git a/src/tsdb/src/tsdbUtil.c b/src/tsdb/src/tsdbUtil.c index e18b9be570..b8c03453f8 100644 --- a/src/tsdb/src/tsdbUtil.c +++ b/src/tsdb/src/tsdbUtil.c @@ -12,9 +12,6 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -#include "libgen.h" -#include "stdio.h" - #include "tsdbMain.h" -- GitLab