From 145ac03ddd858a5ae1ae8e3576ee2a4da52d02a8 Mon Sep 17 00:00:00 2001 From: Antoine Lambert Date: Wed, 20 Nov 2024 15:52:38 +0100 Subject: [PATCH] talipot-python/APIDataBase: Discard useless entries from talipot API Font icons related classes only hold a set of constants and cannot be instantiated. --- library/talipot-python/src/APIDataBase.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/library/talipot-python/src/APIDataBase.cpp b/library/talipot-python/src/APIDataBase.cpp index eadb5803fc..2e7db407df 100644 --- a/library/talipot-python/src/APIDataBase.cpp +++ b/library/talipot-python/src/APIDataBase.cpp @@ -1,6 +1,6 @@ /** * - * Copyright (C) 2019-2023 The Talipot developers + * Copyright (C) 2019-2024 The Talipot developers * * Talipot is a fork of Tulip, created by David Auber * and the Tulip development Team from LaBRI, University of Bordeaux @@ -66,6 +66,14 @@ void APIDataBase::loadApiFile(const QString &apiFilePath) { while (!in.atEnd()) { QString line = in.readLine(); + + if (line.startsWith("_talipot.tlp.MaterialDesignIcons?1") || + line.startsWith("_talipot.tlp.MaterialDesignIcons.__init__") || + line.startsWith("_talipot.tlp.FontAwesome?1") || + line.startsWith("_talipot.tlp.FontAwesome.__init__")) { + continue; + } + addApiEntry(line); if (line.startsWith("_talipot.tlp.Vec3f.")) {