Skip to content

Commit

Permalink
removed Compat
Browse files Browse the repository at this point in the history
  • Loading branch information
tawheeler committed Jul 11, 2017
1 parent 7ea7dee commit 1b009df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
julia 0.6
Compat 0.9.2
VideoIO 0.1.0
8 changes: 3 additions & 5 deletions src/Reel.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
VERSION >= v"0.4.0-dev+6521" && __precompile__(true)
__precompile__(true)

module Reel

using Compat

import Base: write, push!, show
export Frames, roll

Expand All @@ -17,7 +15,7 @@ mutable struct Frames{M <: MIME}
tmpdir::String
length::UInt
fps::Float64
rendered::(@compat Union{Void, String})
rendered::Union{Void, String}
function Frames{M}(; fps=30) where {M <: MIME}
tmpdir = mktempdir()
new(tmpdir, 0, fps, nothing)
Expand Down Expand Up @@ -91,7 +89,7 @@ end

### Roll teh camraz! ###

function roll(render::(@compat Union{Function, Type});
function roll(render::Union{Function, Type};
fps=30, duration=5.0)
t = 0.0
dt = 1.0 / fps
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ let
end

# issue 16 https://github.com/shashi/Reel.jl/issues/16
let
let
ts = []
film = roll(fps=1, duration=5) do t, dt
push!(ts, t)
Expand Down

0 comments on commit 1b009df

Please sign in to comment.