support custom block sizes: fix usage message & remove unused functions
authorBlaise Sanouillet <43636048+blezsan@users.noreply.github.com>
Fri, 28 Sep 2018 16:53:14 +0000 (09:53 -0700)
committerBlaise Sanouillet <43636048+blezsan@users.noreply.github.com>
Fri, 28 Sep 2018 16:53:14 +0000 (09:53 -0700)
programs/lz4cli.c
programs/lz4io.c

index 759f336..3709f50 100644 (file)
@@ -134,7 +134,7 @@ static int usage_advanced(const char* exeName)
     DISPLAY( " -r     : operate recursively on directories (sets also -m) \n");
 #endif
     DISPLAY( " -l     : compress using Legacy format (Linux kernel compression)\n");
-    DISPLAY( " -B#    : cut file into independent blocks of size # bytes [32+] \n");
+    DISPLAY( " -B#    : cut file into blocks of size # bytes [32+] \n");
     DISPLAY( "                     or predefined block size [4-7] (default: 7) \n");
     DISPLAY( " -BD    : Block dependency (improve compression ratio) \n");
     DISPLAY( " -BX    : enable block checksum (default:disabled) \n");
index bec3ae4..a35928d 100644 (file)
@@ -256,7 +256,6 @@ void LZ4IO_setRemoveSrcFile(unsigned flag) { g_removeSrcFile = (flag>0); }
 ** ********************** LZ4 File / Pipe compression ********************* **
 ** ************************************************************************ */
 
-static int LZ4IO_GetBlockSize_FromBlockId (int id) { return (1 << (8 + (2 * id))); }
 static int LZ4IO_isSkippableMagicNumber(unsigned int magic) {
     return (magic & LZ4IO_SKIPPABLEMASK) == LZ4IO_SKIPPABLE0;
 }