From a65c1b5ec7274ead7360b95a5ea0aab001c9b051 Mon Sep 17 00:00:00 2001 From: "James D. Mitchell" Date: Wed, 18 Nov 2020 20:03:14 +0000 Subject: [PATCH] Remove some legacy code for GAP 4.9 --- PackageInfo.g | 2 +- README.md | 6 +++--- src/digraphs.c | 7 ------- src/planar.c | 7 ------- 4 files changed, 4 insertions(+), 18 deletions(-) diff --git a/PackageInfo.g b/PackageInfo.g index e7f225745..b2c1bd558 100644 --- a/PackageInfo.g +++ b/PackageInfo.g @@ -10,7 +10,7 @@ ## <#GAPDoc Label="PKGVERSIONDATA"> ## -## +## ## ## ## diff --git a/README.md b/README.md index ee2f6164a..c0ee40114 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,9 @@ For questions, remarks, suggestions, and issues please use the ## Installation -It is assumed that you have a working copy of [GAP][] with version number 4.9.0 -or higher. The most up-to-date version of GAP, and instructions on how to -install it, can be obtained from the +It is assumed that you have a working copy of [GAP][] with version number +4.10.0 or higher. The most up-to-date version of GAP, and instructions on how +to install it, can be obtained from the [main GAP webpage](https://www.gap-system.org). The following is a summary of the steps that should lead to a successful diff --git a/src/digraphs.c b/src/digraphs.c index c5203c751..622af7209 100644 --- a/src/digraphs.c +++ b/src/digraphs.c @@ -55,13 +55,6 @@ Obj IsPermGroup; Obj IsDigraphAutomorphism; Obj LargestMovedPointPerms; -#if !defined(GAP_KERNEL_MAJOR_VERSION) || GAP_KERNEL_MAJOR_VERSION < 3 -// compatibility with GAP <= 4.9 -static inline Obj NEW_PLIST_IMM(UInt type, Int plen) { - return NEW_PLIST(type | IMMUTABLE, plen); -} -#endif - static inline bool IsAttributeStoringRep(Obj o) { return (CALL_1ARGS(IsAttributeStoringRepObj, o) == True ? true : false); } diff --git a/src/planar.c b/src/planar.c index e4ef05fd9..7ca888345 100644 --- a/src/planar.c +++ b/src/planar.c @@ -32,13 +32,6 @@ #include "planarity/graphK4Search.h" #endif -#if !defined(GAP_KERNEL_MAJOR_VERSION) || GAP_KERNEL_MAJOR_VERSION < 3 -// compatibility with GAP <= 4.9 -static inline Obj NEW_PLIST_IMM(UInt type, Int plen) { - return NEW_PLIST(type | IMMUTABLE, plen); -} -#endif - // Forward declaration of the main function in this file. Obj boyers_planarity_check(Obj digraph, int flags, bool krtwsk);