all repos — mgba @ 227cbea37a1196f34e8884a5331f54c5f30c6e01

mGBA Game Boy Advance Emulator

All: Remove duplicate functions
Jeffrey Pfau jeffrey@endrift.com
Tue, 11 Oct 2016 17:05:14 -0700
commit

227cbea37a1196f34e8884a5331f54c5f30c6e01

parent

f72a582382134370cdde110f6a46c59b4932cf17

2 files changed, 0 insertions(+), 26 deletions(-)

jump to
M src/core/log.hsrc/core/log.h

@@ -30,23 +30,7 @@ int mLogGenerateCategory(const char*);

const char* mLogCategoryName(int); ATTRIBUTE_FORMAT(printf, 3, 4) -#ifndef __NO_INLINE__ -static inline void mLog(int category, enum mLogLevel level, const char* format, ...) { - struct mLogger* context = mLogGetContext(); - va_list args; - va_start(args, format); - if (context) { - context->log(context, category, level, format, args); - } else { - printf("%s: ", mLogCategoryName(category)); - vprintf(format, args); - printf("\n"); - } - va_end(args); -} -#else void mLog(int category, enum mLogLevel level, const char* format, ...); -#endif #define mLOG(CATEGORY, LEVEL, ...) mLog(_mLOG_CAT_ ## CATEGORY (), mLOG_ ## LEVEL, __VA_ARGS__)
M src/util/table.hsrc/util/table.h

@@ -29,18 +29,8 @@

void TableEnumerate(const struct Table*, void (handler(uint32_t key, void* value, void* user)), void* user); size_t TableSize(const struct Table*); -#ifndef __NO_INLINE__ -static inline void HashTableInit(struct Table* table, size_t initialSize, void (deinitializer(void*))) { - TableInit(table, initialSize, deinitializer); -} - -static inline void HashTableDeinit(struct Table* table) { - TableDeinit(table); -} -#else void HashTableInit(struct Table* table, size_t initialSize, void (deinitializer(void*))); void HashTableDeinit(struct Table* table); -#endif void* HashTableLookup(const struct Table*, const char* key); void HashTableInsert(struct Table*, const char* key, void* value);