@@ -287,16 +287,8 @@ for (scip_statistics_func, statistics_func) in zip(SCIP_STATISTICS_FUNCS, STATIS
287
287
@eval begin
288
288
"""
289
289
$($ statistics_func) (mscip::ManagedSCIP)
290
- $($ statistics_func) (mscip::ManagedSCIP, file_descriptor::RawFD)
291
- $($ statistics_func) (mscip::ManagedSCIP, stream::Union{Base.Filesystem.File, IOStream})
292
- $($ statistics_func) (mscip::ManagedSCIP, filename::AbstractString)
293
290
294
- Print statistics (calls `$($ scip_statistics_func) `).
295
-
296
- The one-argument version prints to standard output.
297
-
298
- Note that the method that takes a stream only applies to synchronous
299
- `File`s and `IOStream`s. In particular, it doesn't apply to `stdout`.
291
+ Print statistics (calls `$($ scip_statistics_func) `) to standard output.
300
292
"""
301
293
function $ statistics_func end
302
294
@@ -305,27 +297,5 @@ for (scip_statistics_func, statistics_func) in zip(SCIP_STATISTICS_FUNCS, STATIS
305
297
ret != = nothing && @assert ret == SCIP_OKAY
306
298
return nothing
307
299
end
308
-
309
- function $statistics_func (mscip:: ManagedSCIP , file_descriptor:: RawFD )
310
- file = Libc. FILE (file_descriptor, " w" )
311
- try
312
- ret = $ scip_statistics_func (mscip, file)
313
- ret != = nothing && @assert ret == SCIP_OKAY
314
- finally
315
- close (file)
316
- end
317
- return nothing
318
- end
319
-
320
- function $statistics_func (mscip:: ManagedSCIP , stream:: Union{Base.Filesystem.File, IOStream} )
321
- return $ statistics_func (mscip, fd (stream))
322
- end
323
-
324
- function $statistics_func (mscip:: ManagedSCIP , filename:: AbstractString )
325
- open (filename, write= true ) do io
326
- $ statistics_func (mscip, RawFD (fd (io)))
327
- end
328
- return nothing
329
- end
330
300
end
331
301
end
0 commit comments