Skip to content

Commit

Permalink
- removed unused functions.
Browse files Browse the repository at this point in the history
- fixed bootstrapped compilation for windows.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9657 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Aug 18, 2011
1 parent eb130e4 commit d768450
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 40 deletions.
38 changes: 0 additions & 38 deletions c_runtime/meta/meta_modelica.c
Expand Up @@ -583,44 +583,6 @@ char* getTypeOfAny(void* any) /* for debugging */
return strdup(anyStringBuf);
}

/*
* Returns the Nth item of the list.
*/
int getListCount(void* any)
{
int count = 0;

if (any == NULL) {
return count;
}
while (!MMC_NILTEST(any)) {
count++;
any = MMC_CDR(any);
}
return count;
}
/*
* Returns the Nth item of the list.
*/
char* getNthListItem(void* any, int index)
{
int count = 0;

/* validate the index */
if (index > getListCount(any)-1)
return "Index out of Range";

initializeStringBuffer();
while (count < index)
{
any = MMC_CDR(any);
count++;
}

anyStringWork(MMC_CAR(any), 0);
return strdup(anyStringBuf);
}

unsigned long mmc_prim_hash(void *p)
{
unsigned long hash = 0;
Expand Down
2 changes: 0 additions & 2 deletions c_runtime/meta/meta_modelica.h
Expand Up @@ -429,8 +429,6 @@ void* mmc_anyString(void*); /* For debugging */
void printAny(void*); /* For debugging */
void printTypeOfAny(void*); /* For debugging */
char* getTypeOfAny(void*); /* For debugging */
int getListCount(void*); /* For debugging */
char* getNthListItem(void*, int); /* For debugging */

/*
* Generated (Meta)Records should access a static, constant value of
Expand Down

0 comments on commit d768450

Please sign in to comment.