Skip to content

Commit

Permalink
fix building
Browse files Browse the repository at this point in the history
  • Loading branch information
taiyang-li committed Apr 15, 2024
1 parent dbec01f commit 44ddc7e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Functions/ReplaceRegexpImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ struct ReplaceRegexpTraits
};
};

namespace
{
constexpr ReplaceStringTraits::Replace convertToReplaceStringTraits(ReplaceRegexpTraits::Replace replace)
static constexpr ReplaceStringTraits::Replace convertToReplaceStringTraits(ReplaceRegexpTraits::Replace replace)
{
switch (replace)
{
Expand All @@ -41,8 +39,6 @@ constexpr ReplaceStringTraits::Replace convertToReplaceStringTraits(ReplaceRegex
UNREACHABLE();
}

}

/** Replace all matches of regexp 'needle' to string 'replacement'.
* 'replacement' can contain substitutions, for example: '\2-\3-\1'
*/
Expand Down

0 comments on commit 44ddc7e

Please sign in to comment.