[libcxx-commits] [libcxx] c02160c - [libc++] Remove unused variable

Fanbo Meng via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jun 21 08:39:59 PDT 2021


Author: Fanbo Meng
Date: 2021-06-21T11:39:53-04:00
New Revision: c02160c17b7fc770e57d5b065d8d28a7b2416443

URL: https://github.com/llvm/llvm-project/commit/c02160c17b7fc770e57d5b065d8d28a7b2416443
DIFF: https://github.com/llvm/llvm-project/commit/c02160c17b7fc770e57d5b065d8d28a7b2416443.diff

LOG: [libc++] Remove unused variable

Removing  `__current` as it becomes unused-but-set after 2cf78d4ead4a2ab5375bd6087724211d04119a28.

Reviewed By: ldionne, abhina.sreeskantharajan, #libc

Differential Revision: https://reviews.llvm.org/D104544

Added: 
    

Modified: 
    libcxx/include/regex

Removed: 
    


################################################################################
diff  --git a/libcxx/include/regex b/libcxx/include/regex
index dc1ad00ee285e..5d4c52c40a18f 100644
--- a/libcxx/include/regex
+++ b/libcxx/include/regex
@@ -5905,7 +5905,6 @@ basic_regex<_CharT, _Traits>::__match_at_start_posix_subs(
         __states.back().__node_ = __st;
         __states.back().__flags_ = __flags;
         __states.back().__at_first_ = __at_first;
-        const _CharT* __current = __first;
         bool __matched = false;
         int __counter = 0;
         int __length = __last - __first;
@@ -5945,8 +5944,6 @@ basic_regex<_CharT, _Traits>::__match_at_start_posix_subs(
                     __states.pop_back();
                 break;
             case __state::__accept_and_consume:
-                __current = __s.__current_;
-                break;
             case __state::__repeat:
             case __state::__accept_but_not_consume:
                 break;


        


More information about the libcxx-commits mailing list