Skip to content

Commit 98a994f

Browse files
committed
Removing unnecessary dependencies
1 parent 7be2036 commit 98a994f

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

Project.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,8 @@ RomanNumerals = "37834d88-8936-577c-80c9-1066ecf66832"
2020
Zlib_jll = "83775a58-1f1d-513f-b197-d71354ab007a"
2121

2222
[compat]
23-
AbstractTrees = "0.3"
24-
AdobeGlyphList = "0.1.1"
2523
BinDeps = "1.0"
26-
LabelNumerals = "0.1.0"
27-
Rectangle = "0.1.2"
28-
RomanNumerals = "0.3.3"
24+
OpenSSL_jll = "1.1"
2925
julia = "1.6"
3026

3127
[extras]

test/runtests.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ end
117117
doc = pdDocOpen(joinpath(@__DIR__, pdftest_dir, "DigSig", file))
118118
@test pdDocHasSignature(doc)
119119
r = pdDocValidateSignatures(doc)
120-
@test all([r[i][:passed] for i = 1:length(r)])
120+
@test all([r[i][:passed] for i = eachindex(r)])
121121
pdDocClose(doc)
122122
end
123123
end
@@ -128,7 +128,7 @@ end
128128
doc = pdDocOpen(joinpath(@__DIR__, pdftest_dir, "DigSig", file))
129129
@test pdDocHasSignature(doc)
130130
r = pdDocValidateSignatures(doc)
131-
@test all([r[i][:passed] for i = 1:length(r)])
131+
@test all([r[i][:passed] for i = eachindex(r)])
132132
pdDocClose(doc)
133133
end
134134
end
@@ -140,7 +140,7 @@ end
140140
doc = pdDocOpen(joinpath(@__DIR__, pdftest_dir, "DigSig", file))
141141
@test pdDocHasSignature(doc)
142142
r = pdDocValidateSignatures(doc)
143-
@test all([r[i][:passed] for i = 1:length(r)])
143+
@test all([r[i][:passed] for i = eachindex(r)])
144144
pdDocClose(doc)
145145
end
146146
end
@@ -160,7 +160,7 @@ end
160160
pws = Vector{UInt8}[b"user", b"user", b"user", b"user", b"user", b"", b"test", b"", b"password", b""]
161161
infos = []
162162
encrypted = []
163-
for i = 1:length(files)
163+
for i = eachindex(files)
164164
file = files[i]
165165
resname, template, filename = local_testfiles(file)
166166
doc = pdDocOpen(joinpath(@__DIR__, pdftest_dir, "encrypt", file), access=()->Base.SecretBuffer!(pws[i]))
@@ -188,7 +188,7 @@ end
188188
@testset "PDF owner password documents" begin
189189
files = ["dt.pdf", "dt-own-pass-same.pdf", "upw-password-opw-sample.pdf"]
190190
opws = Vector{UInt8}[b"owner", b"user", b"sample"]
191-
for i = 1:length(files)
191+
for i = eachindex(files)
192192
file = files[i]
193193
resname, template, filename = local_testfiles(file)
194194
doc = pdDocOpen(joinpath(@__DIR__, pdftest_dir, "encrypt", file), access=()->Base.SecretBuffer!(opws[i]))
@@ -208,7 +208,7 @@ end
208208
@testset "PDF Crypt filter" begin
209209
files = ["dt-att-protected.pdf"]
210210
opws = Vector{UInt8}[b"user1234"]
211-
for i = 1:length(files)
211+
for i = eachindex(files)
212212
file = files[i]
213213
doc = pdDocOpen(joinpath(@__DIR__, pdftest_dir, "encrypt", file), access=()->Base.SecretBuffer!(opws[i]))
214214
obj = cosDocGetObject(doc.cosDoc, CosIndirectObjectRef(43, 0))
@@ -227,7 +227,7 @@ end
227227
pw = Base.SecretBuffer("password")
228228
p12path = joinpath(@__DIR__, pdftest_dir, "certs", "doc-crypt.p12")
229229
Base.shred!(pw) do pw
230-
for i = 1:length(files)
230+
for i = eachindex(files)
231231
file = files[i]
232232
resname, template, filename = local_testfiles(file)
233233
path = joinpath(@__DIR__, pdftest_dir, "encrypt", file)

0 commit comments

Comments
 (0)