From 30870e1ba6a682f67669875560d30e07c63cad09 Mon Sep 17 00:00:00 2001 From: edgrif <edgrif> Date: Tue, 16 Feb 2010 10:35:45 +0000 Subject: [PATCH] minor code tidying up. --- .../items/zmapWindowSequenceFeature.c | 30 ++++++++----------- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/src/zmapWindow/items/zmapWindowSequenceFeature.c b/src/zmapWindow/items/zmapWindowSequenceFeature.c index e206810f4..7e212803d 100755 --- a/src/zmapWindow/items/zmapWindowSequenceFeature.c +++ b/src/zmapWindow/items/zmapWindowSequenceFeature.c @@ -27,9 +27,9 @@ * * Exported functions: See XXXXXXXXXXXXX.h * HISTORY: - * Last edited: Nov 18 16:17 2009 (edgrif) + * Last edited: Feb 16 10:07 2010 (edgrif) * Created: Fri Jun 12 10:01:17 2009 (rds) - * CVS info: $Id: zmapWindowSequenceFeature.c,v 1.8 2009-11-24 10:04:27 edgrif Exp $ + * CVS info: $Id: zmapWindowSequenceFeature.c,v 1.9 2010-02-16 10:35:45 edgrif Exp $ *------------------------------------------------------------------- */ @@ -495,7 +495,9 @@ static char *zMapFeatureTranslation(ZMapFeature feature, int *length) char *seq; if(feature->type == ZMAPSTYLE_MODE_TRANSCRIPT) - seq = zMapFeatureTranscriptTranslation(feature, length); + { + seq = zMapFeatureTranscriptTranslation(feature, length); + } else { GArray *rubbish; @@ -525,36 +527,28 @@ static char *zMapFeatureTranslation(ZMapFeature feature, int *length) static ZMapFullExon zmapExonCreate(void) { - ZMapFullExon exon = NULL; + ZMapFullExon exon = NULL ; - if(!(exon = g_new0(ZMapFullExonStruct, 1))) - zMapAssertNotReached(); - - exon->peptide = NULL; + exon = g_new0(ZMapFullExonStruct, 1) ; + exon->peptide = NULL ; - return exon; + return exon ; } static void zmapExonDestroy(ZMapFullExon exon) { zMapAssert(exon); - if(exon->peptide) - g_free(exon->peptide); + if (exon->peptide) + g_free(exon->peptide) ; - g_free(exon); + g_free(exon) ; return ; } - - - - - - static gboolean sequence_feature_selection_proxy_cb(ZMapWindowTextItem text, double cellx1, double celly1, double cellx2, double celly2, -- GitLab