[libcxx-commits] [PATCH] D104544: [libc++] Remove unused variable

Fanbo Meng via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jun 18 08:55:28 PDT 2021


fanbo-meng created this revision.
fanbo-meng added reviewers: ldionne, abhina.sreeskantharajan.
fanbo-meng requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Removing  `__current` as it becomes unused-but-set after 2cf78d4ead4a2ab5375bd6087724211d04119a28 <https://reviews.llvm.org/rG2cf78d4ead4a2ab5375bd6087724211d04119a28>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D104544

Files:
  libcxx/include/regex


Index: libcxx/include/regex
===================================================================
--- libcxx/include/regex
+++ libcxx/include/regex
@@ -5904,7 +5904,6 @@
         __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;
@@ -5944,8 +5943,6 @@
                     __states.pop_back();
                 break;
             case __state::__accept_and_consume:
-                __current = __s.__current_;
-                break;
             case __state::__repeat:
             case __state::__accept_but_not_consume:
                 break;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104544.353016.patch
Type: text/x-patch
Size: 772 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210618/1b55d6d2/attachment.bin>


More information about the libcxx-commits mailing list