From: Matthew Fernandez Date: Tue, 26 Apr 2022 14:47:32 +0000 (-0700) Subject: remove unused 'updatePM' X-Git-Tag: 4.0.0~54^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=577d6a088f44c0088c34c50738db272f08541232;p=graphviz remove unused 'updatePM' The last use of this was removed in 4d12d3f0826198aad637a5ee4d9c1eff21952019. --- diff --git a/lib/common/pointset.c b/lib/common/pointset.c index c5f42300b..f7cafb21c 100644 --- a/lib/common/pointset.c +++ b/lib/common/pointset.c @@ -205,21 +205,6 @@ void freePM(PointMap * ps) free(dp); } -int updatePM(PointMap * pm, int x, int y, int v) -{ - mpair *p; - mpair dummy; - int old; - - dummy.id.x = x; - dummy.id.y = y; - dummy.v = v; - p = dtinsert(pm, &dummy); - old = p->v; - p->v = v; - return old; -} - int insertPM(PointMap * pm, int x, int y, int v) { mpair *p; diff --git a/lib/common/pointset.h b/lib/common/pointset.h index db601454a..64408d5d8 100644 --- a/lib/common/pointset.h +++ b/lib/common/pointset.h @@ -45,7 +45,6 @@ extern "C" { POINTSET_API void clearPM(PointMap *); POINTSET_API void freePM(PointMap *); POINTSET_API int insertPM(PointMap *, int, int, int); - POINTSET_API int updatePM(PointMap * pm, int x, int y, int v); #undef POINTSET_API #ifdef __cplusplus