]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Remove unused function dfltcc_alloc_state
authorVladislav Shchapov <vladislav@shchapov.ru>
Sat, 18 May 2024 08:13:51 +0000 (13:13 +0500)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Tue, 21 May 2024 14:26:56 +0000 (16:26 +0200)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
arch/s390/README.md
arch/s390/dfltcc_detail.h

index 269b29737da22400b4391a538127492c485bf54f..0f3329108dc3df9ccff05d9a95387f56369c9c7e 100644 (file)
@@ -116,8 +116,7 @@ converted to calls to functions, which are implemented in
 `arch/s390/dfltcc_*` files. The functions can be grouped in three broad
 categories:
 
-* Base DFLTCC support, e.g. wrapping the machine instruction -
-  `dfltcc()` and allocating aligned memory - `dfltcc_alloc_state()`.
+* Base DFLTCC support, e.g. wrapping the machine instruction - `dfltcc()`.
 * Translating between software and hardware data formats, e.g.
   `dfltcc_deflate_set_dictionary()`.
 * Translating between software and hardware state machines, e.g.
index 229fb860a773631ecec9dcd2b2932bb1aa732855..497753069948f5c20e7447dbb886a366a9126816 100644 (file)
@@ -218,10 +218,6 @@ static inline dfltcc_cc dfltcc(int fn, void *param,
 
 #define ALIGN_UP(p, size) (__typeof__(p))(((uintptr_t)(p) + ((size) - 1)) & ~((size) - 1))
 
-static inline void *dfltcc_alloc_state(PREFIX3(streamp) strm, uInt size, uInt extension_size) {
-    return ZALLOC(strm, 1, ALIGN_UP(size, 8) + extension_size);
-}
-
 static inline void dfltcc_reset_state(struct dfltcc_state *dfltcc_state) {
     /* Initialize available functions */
     if (is_dfltcc_enabled()) {