From 1abd909a92b696eb556b071671314f35d5d5bde0 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 2 Apr 2019 13:21:21 +0200 Subject: Cleanup: remove DNA_PRIVATE_WORKSPACE hacks. This is just not practical to do for the code as a whole, and having it as an exception for one specific data structure is not that helpful. This has only been in the way for me when refactoring code. --- source/blender/makesdna/intern/makesdna.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'source/blender/makesdna/intern') diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c index 4e16aec5fdc..2467a347295 100644 --- a/source/blender/makesdna/intern/makesdna.c +++ b/source/blender/makesdna/intern/makesdna.c @@ -617,17 +617,6 @@ static int preprocess_include(char *maindata, const int maindata_len) a -= 13; cp += 13; } - else if (strncmp("DNA_PRIVATE_WORKSPACE", cp, 21) == 0) { - /* Check for DNA_PRIVATE_WORKSPACE_READ_WRITE */ - if (strncmp("_READ_WRITE", cp + 21, 11) == 0) { - a -= 31; - cp += 31; - } - else { - a -= 20; - cp += 20; - } - } else { md[0] = cp[0]; md++; -- cgit v1.2.3