]> wimlib.net Git - wimlib/blobdiff - src/lzms_compress.c
header cleanups
[wimlib] / src / lzms_compress.c
index 096862e59c1eb39fc9ab5bb1b7b479406e7342ca..411d667ffefdfb95ee6271725a2ddb92a0227c29 100644 (file)
 #  include "config.h"
 #endif
 
+#include <limits.h>
+#include <pthread.h>
+#include <string.h>
+
 #include "wimlib/compress_common.h"
 #include "wimlib/compressor_ops.h"
 #include "wimlib/endianness.h"
 #include "wimlib/unaligned.h"
 #include "wimlib/util.h"
 
-#include <string.h>
-#include <limits.h>
-#include <pthread.h>
-
 /* Stucture used for writing raw bits as a series of 16-bit little endian coding
  * units.  This starts at the *end* of the compressed data buffer and proceeds
  * backwards.  */
@@ -1422,9 +1422,7 @@ lzms_build_mf_params(const struct lzms_compressor_params *lzms_params,
        memset(mf_params, 0, sizeof(*mf_params));
 
        /* Choose an appropriate match-finding algorithm.  */
-       if (max_window_size <= 2097152)
-               mf_params->algorithm = LZ_MF_BINARY_TREES;
-       else if (max_window_size <= 33554432)
+       if (max_window_size <= 33554432)
                mf_params->algorithm = LZ_MF_LCP_INTERVAL_TREE;
        else
                mf_params->algorithm = LZ_MF_LINKED_SUFFIX_ARRAY;