Skip to content

Commit

Permalink
Remove unneeded code in c_wrapper.jl (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Nov 26, 2024
1 parent 264f39f commit 4d1901a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/c_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@

abstract type AbstractSCSType end

Base.cconvert(::Type{Ptr{Cvoid}}, x::AbstractSCSType) = x

function Base.unsafe_convert(::Type{Ptr{Cvoid}}, x::AbstractSCSType)
return pointer_from_objref(x)
end

mutable struct ScsMatrix{T} <: AbstractSCSType
values::Ptr{Cdouble}
rowval::Ptr{T}
Expand Down

0 comments on commit 4d1901a

Please sign in to comment.