Changeset: a947acee51db for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a947acee51db Modified Files: monetdb5/mal/mal_type.c monetdb5/mal/mal_type.h Branch: default Log Message:
Remove obsolete code diffs (76 lines): diff --git a/monetdb5/mal/mal_type.c b/monetdb5/mal/mal_type.c --- a/monetdb5/mal/mal_type.c +++ b/monetdb5/mal/mal_type.c @@ -176,25 +176,7 @@ getTypeIndex(str nme, int len, int defty i = deftype; return i; } -/* - * Literal constants are not necessarily type specific, e.g. - * the value '0' could represent bte,sht,wrd,int,lng,hge. - * If the value is potentially ambiguous, it should - * be made type specific in listings - */ -int -isAmbiguousType(int type){ - switch(type){ - case TYPE_bte: case TYPE_sht: case TYPE_wrd: case TYPE_int: case TYPE_lng: -#ifdef HAVE_HGE - case TYPE_hge: -#endif - return type != TYPE_int; - case TYPE_flt: case TYPE_dbl: - return type != TYPE_flt; - } - return 0; -} + inline int findGDKtype(int type) { @@ -205,15 +187,6 @@ findGDKtype(int type) return ATOMtype(type); } -str -newTmpName(char tag, int i) -{ - char buf[PATHLENGTH]; - - snprintf(buf, PATHLENGTH, "%c%d", tag, i); - return GDKstrdup(buf); -} - inline int isTmpName(const char *n) { @@ -221,14 +194,6 @@ isTmpName(const char *n) } int -isTypeName(str n) -{ - int i = ATOMindex(n); - - return i >= 0; -} - -int isIdentifier(str s) { if (!isalpha((int) *s)) diff --git a/monetdb5/mal/mal_type.h b/monetdb5/mal/mal_type.h --- a/monetdb5/mal/mal_type.h +++ b/monetdb5/mal/mal_type.h @@ -72,11 +72,8 @@ mal_export int getTypeIndex(str nme, int mal_export malType reverseBatType(malType v); mal_export malType malAnyBatType(malType t1, malType t2); #define idcmp(n, m) strcmp(n, m) -mal_export str newTmpName(char tag, int i); mal_export int isTmpName(const char *n); -mal_export int isTypeName(str n); mal_export int isIdentifier(str s); mal_export int findGDKtype(int type); /* used in src/mal/mal_interpreter.c */ -mal_export int isAmbiguousType(int type); #endif /* MAL_TYPE_H */ _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list