]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1997: Some unused code in move.c and string.c v9.0.1997
authordundargoc <gocdundar@gmail.com>
Fri, 6 Oct 2023 17:41:14 +0000 (19:41 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 6 Oct 2023 17:41:14 +0000 (19:41 +0200)
Problem:  Some unused code in move.c and string.c
Solution: Remove it

closes: #13288

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: dundargoc <gocdundar@gmail.com>
src/move.c
src/strings.c
src/version.c

index 46e4f358dcb6bfac6ca3d26a74b280baa5097d21..a0d3a6014a9d934504bbb71576b926d956149c7e 100644 (file)
@@ -1753,10 +1753,7 @@ scrolldown(
            ++row;
        }
        if (col > width2 && width2 > 0)
-       {
            row += col / width2;
-           col = col % width2;
-       }
        if (row >= curwin->w_height)
        {
            curwin->w_curswant = curwin->w_virtcol
@@ -1989,10 +1986,7 @@ adjust_skipcol(void)
        ++row;
     }
     if (col > width2)
-    {
        row += col / width2;
-       col = col % width2;
-    }
     if (row >= curwin->w_height)
     {
        if (curwin->w_skipcol == 0)
index 33616d609b326c70773fa39afc9d60b3c832b78c..c04cbe84f645b14f652168b572a00b49cc0bdecf 100644 (file)
@@ -2596,7 +2596,7 @@ parse_fmt_types(
                    CHECK_POS_ARG;
                }
            }
-           else if (VIM_ISDIGIT((int)(*(arg = p))))
+           else if (VIM_ISDIGIT((int)(*p)))
            {
                // size_t could be wider than unsigned int; make sure we treat
                // argument like common implementations do
@@ -2651,7 +2651,7 @@ parse_fmt_types(
                        CHECK_POS_ARG;
                    }
                }
-               else if (VIM_ISDIGIT((int)(*(arg = p))))
+               else if (VIM_ISDIGIT((int)(*p)))
                {
                    // size_t could be wider than unsigned int; make sure we
                    // treat argument like common implementations do
@@ -2684,7 +2684,7 @@ parse_fmt_types(
                if (length_modifier == 'l' && *p == 'l')
                {
                    // double l = __int64 / varnumber_T
-                   length_modifier = 'L';
+                   // length_modifier = 'L';
                    p++;
                }
            }
index ec25a1213d2156d5538ca14c03cb0c04e651de10..a946279ec2f1a759a0882f809676b6ef891e0f3d 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1997,
 /**/
     1996,
 /**/