mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +00:00
svg loader: remove unused logic.
Please keep it simple and easy. Don't leave a chance compiler warn it.
This commit is contained in:
parent
3939b61770
commit
93b88370ad
1 changed files with 2 additions and 4 deletions
|
@ -137,11 +137,11 @@ static constexpr struct
|
|||
};
|
||||
|
||||
|
||||
static bool _parseAspectRatio(const char** content, AspectRatioAlign* align, AspectRatioMeetOrSlice* meetOrSlice)
|
||||
static void _parseAspectRatio(const char** content, AspectRatioAlign* align, AspectRatioMeetOrSlice* meetOrSlice)
|
||||
{
|
||||
if (!strcmp(*content, "none")) {
|
||||
*align = AspectRatioAlign::None;
|
||||
return true;
|
||||
return;
|
||||
}
|
||||
|
||||
for (unsigned int i = 0; i < sizeof(alignTags) / sizeof(alignTags[0]); i++) {
|
||||
|
@ -158,8 +158,6 @@ static bool _parseAspectRatio(const char** content, AspectRatioAlign* align, Asp
|
|||
} else if (!strcmp(*content, "slice")) {
|
||||
*meetOrSlice = AspectRatioMeetOrSlice::Slice;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue