Skip to content

Commit

Permalink
Remove non-parsing code
Browse files Browse the repository at this point in the history
  • Loading branch information
jdlangs committed Jul 9, 2015
1 parent aedd718 commit 3557e7c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion base/exports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ export
.-,
.*,
./,
++,
.<,
.<=,
.≤,
Expand Down
5 changes: 2 additions & 3 deletions base/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ getindex(p::Pair,i::Real) = getfield(p, convert(Int, i))
reverse(p::Pair) = Pair(p.second, p.first)

# some operators not defined yet
global //, >:, <|, hcat, hvcat, ++, , ×, , , , , , , , , , ,
global //, >:, <|, hcat, hvcat, , ×, , , , , , , , , , ,

this_module = current_module()
baremodule Operators
Expand All @@ -446,7 +446,6 @@ export
.-,
.*,
./,
++,
.<,
.<=,
.==,
Expand Down Expand Up @@ -504,7 +503,7 @@ export
ctranspose,
call

import ..this_module: !, !=, $, %, .%, &, *, +, -, .!=, .+, .-, .*, ./, ++, .<, .<=, .==, .>,
import ..this_module: !, !=, $, %, .%, &, *, +, -, .!=, .+, .-, .*, ./, .<, .<=, .==, .>,
.>=, .\, .^, /, //, <, <:, <<, <=, ==, >, >=, >>, .>>, .<<, >>>,
<|, |>, \, ^, |, ~, !==, ===, >:, colon, hcat, vcat, hvcat, getindex, setindex!,
transpose, ctranspose, call,
Expand Down
2 changes: 1 addition & 1 deletion base/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ function show_unquoted(io::IO, ex::Expr, indent::Int, prec::Int)
# unary operator (i.e. "!z")
elseif isa(func,Symbol) && func in uni_ops && length(func_args) == 1
show_unquoted(io, func, indent)
#for safety, always wrap a call on an operator in parens
#always wrap a call on an operator in parens
arg_is_op = func_args[1] in union(uni_ops, expr_infix_any)
if arg_is_op || isa(func_args[1], Expr)
show_enclosed_list(io, '(', func_args, ",", ')', indent, func_prec)
Expand Down
1 change: 0 additions & 1 deletion base/string.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ sizeof(s::AbstractString) = error("type $(typeof(s)) has no canonical binary rep
eltype{T<:AbstractString}(::Type{T}) = Char

(*)(s1::AbstractString, ss::AbstractString...) = string(s1, ss...)
(++)(s1::AbstractString, ss::AbstractString...) = string(s1, ss...)
(^)(s::AbstractString, r::Integer) = repeat(s,r)

length(s::DirectIndexString) = endof(s)
Expand Down

0 comments on commit 3557e7c

Please sign in to comment.