Skip to content

Commit 060a51c

Browse files
committed
Remove (c)transpose no-op for Chars and remove associated test.
1 parent 755b4ed commit 060a51c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

base/char.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ in(x::Char, y::Char) = x == y
3232
==(x::Char, y::Char) = UInt32(x) == UInt32(y)
3333
isless(x::Char, y::Char) = UInt32(x) < UInt32(y)
3434

35-
transpose(c::Char) = c
36-
3735
const hashchar_seed = 0xd4d64234
3836
hash(x::Char, h::UInt) = hash_uint64(((UInt64(x)+hashchar_seed)<<32) $ UInt64(h))
3937

test/operators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ p = 1=>:foo
3333
@test (|)(2) == 2
3434
@test ($)(2) == 2
3535

36-
@test ctranspose('a') == 'a'
36+
# @test ctranspose('a') == 'a' # (c)transpose of Chars no longer supported
3737

3838
@test_throws ArgumentError Base.scalarmin(['a','b'],['c','d'])
3939
@test_throws ArgumentError Base.scalarmin('a',['c','d'])

0 commit comments

Comments
 (0)