diff --git a/common/lib_id.cpp b/common/lib_id.cpp index 8bedeb2d49..ae8dcf121b 100644 --- a/common/lib_id.cpp +++ b/common/lib_id.cpp @@ -3,7 +3,7 @@ * * Copyright (C) 2010 SoftPLC Corporation, Dick Hollenbeck * Copyright (C) 2012 Wayne Stambaugh - * Copyright (C) 2010-2018 KiCad Developers, see change_log.txt for contributors. + * Copyright (C) 2010-2020 KiCad Developers, see change_log.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -435,9 +435,9 @@ bool LIB_ID::isLegalLibNicknameChar( unsigned aUniChar, LIB_ID_TYPE aType ) } -#if 0 && defined(DEBUG) +#if 0 -// build this with Debug CMAKE_BUILD_TYPE +// @todo Move this test into the unit test framework. void LIB_ID::Test() { @@ -463,12 +463,4 @@ void LIB_ID::Test() } } - -int main( int argc, char** argv ) -{ - LIB_ID::Test(); - - return 0; -} - #endif diff --git a/include/lib_id.h b/include/lib_id.h index e6254dcb93..48d9ec8ff1 100644 --- a/include/lib_id.h +++ b/include/lib_id.h @@ -3,7 +3,7 @@ * * Copyright (C) 2010-2012 SoftPLC Corporation, Dick Hollenbeck * Copyright (C) 2012 Wayne Stambaugh - * Copyright (C) 2010-2018 KiCad Developers, see change_log.txt for contributors. + * Copyright (C) 2010-2020 KiCad Developers, see change_log.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -228,10 +228,6 @@ public: */ static unsigned FindIllegalLibNicknameChar( const UTF8& aNickname, LIB_ID_TYPE aType ); -#if defined(DEBUG) - static void Test(); -#endif - protected: /** * Tests whether a unicode character is a legal LIB_ID item name character.