summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/skin_parser.c
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-06-02 06:12:18 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-06-02 06:12:18 +0000
commit4003f35dc79c4678526d2ee3a510963713ce88b8 (patch)
treea5b82cdb81cb56b65f6b5f6a4a4284d5a32f94f0 /utils/themeeditor/skin_parser.c
parentf16adb045a25bf6f7ac29a2f6c80b25f1a3d2613 (diff)
downloadrockbox-4003f35dc79c4678526d2ee3a510963713ce88b8.tar.gz
rockbox-4003f35dc79c4678526d2ee3a510963713ce88b8.tar.bz2
rockbox-4003f35dc79c4678526d2ee3a510963713ce88b8.zip
Theme Editor: Removed the NEWLINE parse tree element
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26463 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/skin_parser.c')
-rw-r--r--utils/themeeditor/skin_parser.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/utils/themeeditor/skin_parser.c b/utils/themeeditor/skin_parser.c
index 860970b7e7..9ff4f90115 100644
--- a/utils/themeeditor/skin_parser.c
+++ b/utils/themeeditor/skin_parser.c
@@ -49,7 +49,6 @@ int skin_parse_tag(struct skin_element* element, char** document);
int skin_parse_text(struct skin_element* element, char** document,
int conditional);
int skin_parse_conditional(struct skin_element* element, char** document);
-int skin_parse_newline(struct skin_element* element, char** document);
int skin_parse_comment(struct skin_element* element, char** document);
struct skin_element* skin_parse_code_as_arg(char** document);
@@ -166,10 +165,7 @@ struct skin_element* skin_parse_viewport(char** document)
if(*cursor == '\n')
{
- *to_write = skin_alloc_element();
- skin_parse_newline(*to_write, &cursor);
- if(!last)
- return NULL;
+ cursor++;
}
else if(sublines)
{
@@ -705,28 +701,6 @@ int skin_parse_conditional(struct skin_element* element, char** document)
return 1;
}
-int skin_parse_newline(struct skin_element* element, char** document)
-{
-
- char* cursor = *document;
- if(*cursor != '\n')
- {
- skin_error(NEWLINE_EXPECTED);
- return 0;
- }
- cursor++;
-
- /* Assembling a skin_element struct for a newline */
- element->type = NEWLINE;
- element->line = skin_line;
- skin_line++;
- element->next = NULL;
-
- *document = cursor;
-
- return 1;
-}
-
int skin_parse_comment(struct skin_element* element, char** document)
{
char* cursor = *document;