Skip to content

Commit

Permalink
[libc++] Remove unused variable
Browse files Browse the repository at this point in the history
Removing  `__current` as it becomes unused-but-set after 2cf78d4.

Reviewed By: ldionne, abhina.sreeskantharajan, #libc

Differential Revision: https://reviews.llvm.org/D104544
  • Loading branch information
fanbo-meng committed Jun 21, 2021
1 parent 198b79c commit c02160c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libcxx/include/regex
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c02160c

Please sign in to comment.