(svn r16434) -Cleanup: remove some dead code; primarily stuff that can't be reached like break after returns or break after functions that never return (i.e. NOT_REACHED)

This commit is contained in:
rubidium
2009-05-26 15:46:24 +00:00
parent 2a5a8f395c
commit e3c5bc8d2e
15 changed files with 30 additions and 36 deletions

View File

@@ -488,9 +488,6 @@ int64 ReadValue(const void *ptr, VarType conv)
case SLE_VAR_NULL:return 0;
default: NOT_REACHED();
}
/* useless, but avoids compiler warning this way */
return 0;
}
/** Write the value of a setting
@@ -1488,8 +1485,6 @@ static size_t ReferenceToInt(const void *obj, SLRefType rt)
case REF_ORDERLIST: return ((const OrderList*)obj)->index + 1;
default: NOT_REACHED();
}
return 0; // avoid compiler warning
}
/**