-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed unicode_str & fun_stacktrace #171
Conversation
src/ec_date.erl
Outdated
@@ -709,11 +709,7 @@ pad6(X) when is_integer(X) -> | |||
ltoi(X) -> | |||
list_to_integer(X). | |||
|
|||
-ifdef(unicode_str). | |||
uppercase(Str) -> string:uppercase(Str). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we just keep the intermediary call here or also fold in the uppercase/1
call to be string:uppercase/1
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Folded all down to string:uppercase/1
: no blocker.
src/ec_git_vsn.erl
Outdated
@@ -99,16 +99,10 @@ parse_tags(Pattern) -> | |||
{Tag, Vsn1} | |||
end. | |||
|
|||
-ifdef(unicode_str). | |||
len(Str) -> string:length(Str). | |||
trim(Str, right, Chars) -> string:trim(Str, trailing, Chars); | |||
trim(Str, left, Chars) -> string:trim(Str, leading, Chars). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same question here. Can we or should we remove these intermediary calls? Any blockers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No blocker.
src/ec_talk.erl
Outdated
@@ -197,13 +197,8 @@ get_string(String) -> | |||
no_clue | |||
end. | |||
|
|||
-ifdef(unicode_str). | |||
trim(Str) -> string:trim(Str). | |||
trim(Str, both, Chars) -> string:trim(Str, both, Chars). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And same question here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No blocker.
@@ -886,7 +871,6 @@ runmany_wrap(Fun, Parent) -> | |||
throw:R:Stacktrace -> | |||
Parent ! {erlang:self(), error, {{nocatch, R}, Stacktrace}} | |||
end. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one definitely needs to stay around.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
dc9a836
to
f878e9f
Compare
Rebasing the PR; one extra commit has gone thru. |
* introduced in ad2d57d * CI/CD uses R23 and onwards * erlang:get_stacktrace/0 removed in R23. [1] https://www.erlang.org/doc/general_info/removed#functions-removed-in-otp-23
* introduced in f8f72b7 * introduced for working around compile warning starting from R20 * CI/CD uses R23 and onwards.
f878e9f
to
f378d3e
Compare
Good; please go ahead. |
unicode_str
(introduced in f8f72b7) to work around R20 compile warningsfun_stacktrace
(introduced in ad2d57d) relies onerlang:get_stacktrace/0
, deprecated from R23.