From 200946321a0fd09d8060cf7e3993f50c21f537d9 Mon Sep 17 00:00:00 2001 From: Anshul Singhvi Date: Sun, 6 Oct 2024 22:02:37 -0700 Subject: [PATCH] Simplify and make imports explicit --- src/GeometryOps.jl | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/src/GeometryOps.jl b/src/GeometryOps.jl index c4d16ff4c..90f0da2e1 100644 --- a/src/GeometryOps.jl +++ b/src/GeometryOps.jl @@ -3,23 +3,14 @@ module GeometryOps import GeometryOpsCore -for name in Base.setdiff( - Base.union( - names(GeometryOpsCore), - ( - :flatten, :reconstruct, :rebuild, :unwrap, :_linearring, - :APPLY_KEYWORDS, :THREADED_KEYWORD, :CRS_KEYWORD, :CALC_EXTENT_KEYWORD, - ) - ), - (:eval, :include, :var"#eval", :var"#include"), - ) - # Import all symbols from GeometryOpsCore - @eval import GeometryOpsCore: $name - # Re-export all exported symbols - if Base.isexported(GeometryOpsCore, name) - @eval export $name - end -end +import GeometryOpsCore: + Manifold, Planar, Spherical, Geodesic, + BoolsAsTypes, _True, _False, _booltype, + apply, applyreduce, + flatten, reconstruct, rebuild, unwrap, _linearring, + APPLY_KEYWORDS, THREADED_KEYWORD, CRS_KEYWORD, CALC_EXTENT_KEYWORD + +export Manifold, Planar, Spherical, Geodesic, apply, applyreduce, flatten, reconstruct, rebuild, unwrap using GeoInterface using GeometryBasics