[dia] [scan-build] Dead assignment
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [dia] [scan-build] Dead assignment
- Date: Sat, 2 Jan 2010 14:46:26 +0000 (UTC)
commit 133928e14419dd8a02f74ce216e551e821c07d86
Author: Hans Breuer <hans breuer org>
Date: Thu Dec 31 14:31:53 2009 +0100
[scan-build] Dead assignment
Remove dead code to avoid
Value stored to 'extent' is never read
Value stored to 'scale' is never read
plug-ins/metapost/render_metapost.c | 3 ---
plug-ins/pgf/render_pgf.c | 15 ---------------
2 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/plug-ins/metapost/render_metapost.c b/plug-ins/metapost/render_metapost.c
index 7b4b5f2..0f2dcf8 100644
--- a/plug-ins/metapost/render_metapost.c
+++ b/plug-ins/metapost/render_metapost.c
@@ -1161,7 +1161,6 @@ export_metapost(DiagramData *data, const gchar *filename,
MetapostRenderer *renderer;
FILE *file;
time_t time_now;
- double scale;
Rectangle *extent;
const char *name;
gchar d1_buf[DTOSTR_BUF_SIZE];
@@ -1190,8 +1189,6 @@ export_metapost(DiagramData *data, const gchar *filename,
time_now = time(NULL);
extent = &data->extents;
- scale = POINTS_in_INCH * data->paper.scaling;
-
name = g_get_user_name();
fprintf(file,
diff --git a/plug-ins/pgf/render_pgf.c b/plug-ins/pgf/render_pgf.c
index dc90bad..81a8d75 100644
--- a/plug-ins/pgf/render_pgf.c
+++ b/plug-ins/pgf/render_pgf.c
@@ -1190,13 +1190,7 @@ export_pgf(DiagramData *data, const gchar *filename,
PgfRenderer *renderer;
FILE *file;
time_t time_now;
- double scale;
- Rectangle *extent;
const char *name;
- /* gchar el_buf[DTOSTR_BUF_SIZE];
- gchar er_buf[DTOSTR_BUF_SIZE];
- gchar eb_buf[DTOSTR_BUF_SIZE];
- gchar et_buf[DTOSTR_BUF_SIZE]; */
gchar scale1_buf[DTOSTR_BUF_SIZE];
gchar scale2_buf[DTOSTR_BUF_SIZE];
@@ -1219,9 +1213,6 @@ export_pgf(DiagramData *data, const gchar *filename,
renderer->saved_line_style = LINESTYLE_SOLID;
time_now = time(NULL);
- extent = &data->extents;
-
- scale = POINTS_in_INCH * data->paper.scaling;
name = g_get_user_name();
@@ -1246,12 +1237,6 @@ export_pgf(DiagramData *data, const gchar *filename,
ctime(&time_now),
name);
-/* fprintf(renderer->file,"\\pspicture(%s,%s)(%s,%s)\n",
- pgf_dtostr(el_buf,extent->left * data->paper.scaling),
- pgf_dtostr(eb_buf,-extent->bottom * data->paper.scaling),
- pgf_dtostr(er_buf,extent->right * data->paper.scaling),
- pgf_dtostr(et_buf,-extent->top * data->paper.scaling) );
-*/
fprintf(renderer->file,"\\pgftransformxscale{%s}\n"
"\\pgftransformyscale{%s}\n",
pgf_dtostr(scale1_buf,data->paper.scaling),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]