Skip to content

Commit

Permalink
talipot-python/APIDataBase: Discard useless entries from talipot API
Browse files Browse the repository at this point in the history
Font icons related classes only hold a set of constants and cannot be
instantiated.
  • Loading branch information
anlambert committed Nov 20, 2024
1 parent b41f159 commit 145ac03
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion library/talipot-python/src/APIDataBase.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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.")) {
Expand Down

0 comments on commit 145ac03

Please sign in to comment.