Skip to content

Commit c02160c

Browse files
committed
[libc++] Remove unused variable
Removing `__current` as it becomes unused-but-set after 2cf78d4. Reviewed By: ldionne, abhina.sreeskantharajan, #libc Differential Revision: https://reviews.llvm.org/D104544
1 parent 198b79c commit c02160c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

libcxx/include/regex

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5905,7 +5905,6 @@ basic_regex<_CharT, _Traits>::__match_at_start_posix_subs(
59055905
__states.back().__node_ = __st;
59065906
__states.back().__flags_ = __flags;
59075907
__states.back().__at_first_ = __at_first;
5908-
const _CharT* __current = __first;
59095908
bool __matched = false;
59105909
int __counter = 0;
59115910
int __length = __last - __first;
@@ -5945,8 +5944,6 @@ basic_regex<_CharT, _Traits>::__match_at_start_posix_subs(
59455944
__states.pop_back();
59465945
break;
59475946
case __state::__accept_and_consume:
5948-
__current = __s.__current_;
5949-
break;
59505947
case __state::__repeat:
59515948
case __state::__accept_but_not_consume:
59525949
break;

0 commit comments

Comments
 (0)