summaryrefslogtreecommitdiff
path: root/kicad
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-29 14:26:51 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-29 14:26:51 (GMT)
commit59ddf85e6f924a136e5cf7a8f42d53da2aab4204 (patch)
tree814395e498a36e64c4de100ca2d260f7680a92c3 /kicad
parent48f6dd0446d82db495fd6d116d39fd61853a382d (diff)
downloadeeshow-59ddf85e6f924a136e5cf7a8f42d53da2aab4204.zip
eeshow-59ddf85e6f924a136e5cf7a8f42d53da2aab4204.tar.gz
eeshow-59ddf85e6f924a136e5cf7a8f42d53da2aab4204.tar.bz2
kicad/lib-render.c (lib_field_visible): unused (and a bit misleading), remove
Diffstat (limited to 'kicad')
-rw-r--r--kicad/lib-render.c6
-rw-r--r--kicad/lib.h1
-rw-r--r--kicad/sch-parse.c4
3 files changed, 1 insertions, 10 deletions
diff --git a/kicad/lib-render.c b/kicad/lib-render.c
index 88691ec..8562976 100644
--- a/kicad/lib-render.c
+++ b/kicad/lib-render.c
@@ -728,12 +728,6 @@ const struct comp *lib_find(const struct lib *lib, const char *name)
}
-bool lib_field_visible(const struct comp *comp, int n)
-{
- return (comp->visible >> n) & 1;
-}
-
-
/* ----- Rendering --------------------------------------------------------- */
diff --git a/kicad/lib.h b/kicad/lib.h
index 6730166..2f628d1 100644
--- a/kicad/lib.h
+++ b/kicad/lib.h
@@ -134,7 +134,6 @@ extern struct comp *comps;
const struct comp *lib_find(const struct lib *lib, const char *name);
-bool lib_field_visible(const struct comp *comp, int n);
void lib_render(const struct comp *comp, struct gfx *gfx,
unsigned unit, unsigned convert, const int m[6]);
void lib_render_extra(const struct comp *comp, struct gfx *gfx,
diff --git a/kicad/sch-parse.c b/kicad/sch-parse.c
index afb543e..f1c42fc 100644
--- a/kicad/sch-parse.c
+++ b/kicad/sch-parse.c
@@ -185,9 +185,7 @@ static bool parse_field(struct sch_ctx *ctx, const char *line)
if (flags) {
/*
* @@@ visibility settings in component only seem to be used only as default
- * for sheet and are ignored thereafter:
- *
- * || (comp->comp && !lib_field_visible(comp->comp, n))) {
+ * for sheet and are ignored thereafter.
*/
free((char *) txt->s);
free(field);