@@ -148,11 +148,6 @@ static int UpdateRequiredFiles(void);
148148static rlExampleInfo * LoadExamplesData (const char * fileName , const char * category , bool sort , int * exCount );
149149static void UnloadExamplesData (rlExampleInfo * exInfo );
150150
151- // Get text lines (by line-breaks '\n')
152- // WARNING: It does not copy text data, just returns line pointers
153- static char * * LoadTextLines (const char * text , int * count );
154- static void UnloadTextLines (char * * text );
155-
156151// Load example info from file header
157152static rlExampleInfo * LoadExampleInfo (const char * exFileName );
158153static void UnloadExampleInfo (rlExampleInfo * exInfo );
@@ -1775,39 +1770,6 @@ static int FileMove(const char *srcPath, const char *dstPath)
17751770 return result ;
17761771}
17771772
1778- // Load text lines
1779- static char * * LoadTextLines (const char * text , int * count )
1780- {
1781- #define MAX_TEXT_LINES 512
1782- #define MAX_TEXT_LINE_LEN 512
1783-
1784- char * * lines = (char * * )RL_CALLOC (MAX_TEXT_LINES , sizeof (char * ));
1785- for (int i = 0 ; i < MAX_TEXT_LINES ; i ++ ) lines [i ] = (char * )RL_CALLOC (MAX_TEXT_LINE_LEN , 1 );
1786- int textSize = (int )strlen (text );
1787- int k = 0 ;
1788-
1789- for (int i = 0 , len = 0 ; (i < textSize ) && (k < MAX_TEXT_LINES ); i ++ )
1790- {
1791- if ((text [i ] == '\n' ) || (len == (MAX_TEXT_LINE_LEN - 1 )))
1792- {
1793- strncpy (lines [k ], & text [i - len ], len );
1794- len = 0 ;
1795- k ++ ;
1796- }
1797- else len ++ ;
1798- }
1799-
1800- * count += k ;
1801- return lines ;
1802- }
1803-
1804- // Unload text lines
1805- static void UnloadTextLines (char * * lines )
1806- {
1807- for (int i = 0 ; i < MAX_TEXT_LINES ; i ++ ) RL_FREE (lines [i ]);
1808- RL_FREE (lines );
1809- }
1810-
18111773// Get example info from example file header
18121774// NOTE: Expecting the example to follow raylib_example_template.c
18131775rlExampleInfo * LoadExampleInfo (const char * exFileName )
0 commit comments