* [PATCH] lib/zstd: remove unused macros
@ 2020-01-21 7:44 Alex Shi
0 siblings, 0 replies; only message in thread
From: Alex Shi @ 2020-01-21 7:44 UTC (permalink / raw)
Cc: Nick Terrell, linux-kernel
FSE_TYPE_NAME/FSE_FUNCTION_NAME/FSE_CAT are never used from introduced
commit 73f3d1b48f506 ("lib: Add zstd modules"). Better to remove them.
Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
Cc: Nick Terrell <terrelln@fb.com>
Cc: linux-kernel@vger.kernel.org
---
lib/zstd/fse_compress.c | 5 -----
lib/zstd/fse_decompress.c | 5 -----
2 files changed, 10 deletions(-)
diff --git a/lib/zstd/fse_compress.c b/lib/zstd/fse_compress.c
index ef3d1741d532..20367cd2eaa0 100644
--- a/lib/zstd/fse_compress.c
+++ b/lib/zstd/fse_compress.c
@@ -77,11 +77,6 @@
#error "FSE_FUNCTION_TYPE must be defined"
#endif
-/* Function names */
-#define FSE_CAT(X, Y) X##Y
-#define FSE_FUNCTION_NAME(X, Y) FSE_CAT(X, Y)
-#define FSE_TYPE_NAME(X, Y) FSE_CAT(X, Y)
-
/* Function templates */
/* FSE_buildCTable_wksp() :
diff --git a/lib/zstd/fse_decompress.c b/lib/zstd/fse_decompress.c
index a84300e5a013..7fcafe5f2615 100644
--- a/lib/zstd/fse_decompress.c
+++ b/lib/zstd/fse_decompress.c
@@ -85,11 +85,6 @@
#error "FSE_FUNCTION_TYPE must be defined"
#endif
-/* Function names */
-#define FSE_CAT(X, Y) X##Y
-#define FSE_FUNCTION_NAME(X, Y) FSE_CAT(X, Y)
-#define FSE_TYPE_NAME(X, Y) FSE_CAT(X, Y)
-
/* Function templates */
size_t FSE_buildDTable_wksp(FSE_DTable *dt, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workspace, size_t workspaceSize)
--
1.8.3.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-21 7:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-21 7:44 [PATCH] lib/zstd: remove unused macros Alex Shi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).