From 4d1901a73200beabe622e3554466bb4a66cfafb1 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Tue, 26 Nov 2024 15:11:34 +1300 Subject: [PATCH] Remove unneeded code in c_wrapper.jl (#301) --- src/c_wrapper.jl | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/c_wrapper.jl b/src/c_wrapper.jl index 2c514c7..ff4e8f3 100644 --- a/src/c_wrapper.jl +++ b/src/c_wrapper.jl @@ -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}